Error Bars Log Plot Matlab
Contents |
Support Support Newsreader MathWorks Search MathWorks.com MathWorks Newsreader Support MATLAB Newsgroup MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New matlab plot error bars loglog Message Advanced Search Help MATLAB Central Community Home MATLAB Answers File Exchange Cody matlab plot error bars without line Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New Message Advanced Search Help Trial software error bars in log-log
Matlab Plot Error Bars Scatter
scale Subject: error bars in log-log scale From: Marco Date: 12 Sep, 2002 08:55:41 Message: 1 of 6 Reply to this message Add author to My Watch List View original format Flag
Matlab Plot Error Bars Bar Graph
as spam Anybody knows how can I plot error bars in a semi- or bi-logarythmic scale? The command errorbar does not help... thanx Marco Subject: error bars in log-log scale From: nospam@thank.you (De... Date: 12 Sep, 2002 13:20:21 Message: 2 of 6 Reply to this message Add author to My Watch List View original format Flag as spam On Thu, 12 Sep 2002 08:55:41 errorbarlogx -0400, Marco
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer
Matlab Errorbar Loglog
Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB logarithmic error bars Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More matlab errorbarlogx Contributors Recent Activity Flagged Content Flagged as Spam Help Trial software Adam Goldsmith (view profile) 3 questions 0 answers 0 accepted answers Reputation: 1 Vote1 How do I get working y-axis https://www.mathworks.com/matlabcentral/newsreader/view_thread/39537 errorbars using a log scale? Asked by Adam Goldsmith Adam Goldsmith (view profile) 3 questions 0 answers 0 accepted answers Reputation: 1 on 8 Sep 2015 Latest activity Answered by Mike Garrity Mike Garrity (view profile) 0 questions 370 answers 198 accepted answers Reputation: 1,170 on 8 Sep 2015 81 views (last 30 days) 81 views (last 30 days) I'm trying to plot https://www.mathworks.com/matlabcentral/answers/241261-how-do-i-get-working-y-axis-errorbars-using-a-log-scale data on a semilog plot (y-axis: log, x-axis: linear), but the errorbars are seriously screwed up.All I'm doing is loading my data and entering:figure errorbar(hp_v3,hp_D0,hp_D0_,'ok') set(gca,'YScale','log') where hp_D0_ is the vector of uncertainty values for vector hp_D0. This results in the plot attached as an image, which obviously isn't working.I've also tried errrobarlogy, which produces literally the same plot. Any ideas? 0 Comments Show all comments Tags semilogyploterrorbarerrorbarlogyfigures Products MATLAB Related Content 1 Answer Mike Garrity (view profile) 0 questions 370 answers 198 accepted answers Reputation: 1,170 Vote1 Link Direct link to this answer: https://www.mathworks.com/matlabcentral/answers/241261#answer_191705 Answer by Mike Garrity Mike Garrity (view profile) 0 questions 370 answers 198 accepted answers Reputation: 1,170 on 8 Sep 2015 That looks like what happens if the bottom of the errorbar is negative.What do you get if you do this:h = errorbar(hp_v3,hp_D0,hp_D0_,'ok'); h.YData - h.LData Are the resulting values negative?If so, what's happening is that the log transform of the negative value results in a complex value which it can't transform to a point on the screen.Here's an attempt to recreate your data:rng default hp_v3 = 986:1002 hp_D0 = 1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://stackoverflow.com/questions/4393868/plotting-errorbars-in-the-logarithmic-domain-with-negative-values-matlab Discuss the workings and policies of this site About Us Learn https://norbertobarrocablog.wordpress.com/2011/01/11/plot-error-bar-yaxis-in-logarithmic-scale/ more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, error bars helping each other. Join them; it only takes a minute: Sign up Plotting errorbars in the logarithmic domain with negative values (Matlab) up vote 3 down vote favorite 1 I have a vector, call it x, which contains very small numbers that I calculated from a mean. I'd like to plot the logarithmic transform of x, say matlab plot error y=10*log10(x), along with errorbars equal to +- 2 standard deviations calculated when finding the mean. To do this, I'm using the following code: figure errorbar(lengths, 10*log10(x), ... 10*log10(x-2*std_x), 10*log10(x+2*std_x), 'o') My problem is that since x contains such small values, x-2*std_x is usually a negative number, and you can't take the log of negative numbers. So I suppose my question is how can I plot errorbars in the logarithmic domain when subtracting the standard deviation in the linear domain gives me negative numbers? I can't do the +- matlab plot logarithm share|improve this question edited May 4 '12 at 23:42 CharlesB 42.2k11117136 asked Dec 9 '10 at 0:49 Josiah 3891822 this also means that the error bar meaning isn't quite right - the error bars assume a gaussian distribution, and nonnegativity means that it's not gaussian. but I still understand why you would do this, and it's still reasonable :) –Peter Dec 9 '10 at 1:05 add a comment| 3 Answers 3 active oldest votes up vote 1
‘YScale', ‘log'); %This part of the code allows changing the xaxis set(gca,'XTick',1:1:21); set(gca,'XTickLabel',{‘1', ‘5', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55', '60', '65', '70', '75', '80', '85', '90', '95', ‘100'}); Like this:Like Loading... Post navigation ← How to write your first code in C++ by using Visual Studio2010 Matemática Básica: O que significa o termo “ser divisível”? → Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Change) You are commenting using your Google+ account. (LogOut/Change) Cancel Connecting to %s Notify me of new comments via email. Search Recent Posts Results Analysis –OMNeT++ How to install TinyOS 2.1.2 on Ubuntu12.04? List of Publications Matemática Básica: O que significa o termo “ser divisível”? Plot error bar + yaxis in LogarithmicScale Archives January 2013 December 2012 November 2012 June 2011 January 2011 December 2010 November 2010 October 2010 Categories C++ MATLAB OMNeT++ Publications TinyOS Meta Register Log in Entries RSS Comments RSS WordPress.com ResearcherID Badge Blog at WordPress.com. %d bloggers like this: