Error Bars Loglog 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 Message Advanced Search Help MATLAB Central Community Home MATLAB Answers errorbarlogx File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New Message matlab errorbarlogx Advanced Search Help Trial software how to plot errorbar in loglog scale?--thanks a lot Subject: how to plot errorbar in loglog scale?--thanks
Matlab Errorbar Log Scale
a lot From: Duane Bozarth Date: 29 Jul, 2003 15:17:48 Message: 1 of 5 Reply to this message Add author to My Watch List View original format Flag as spam Sean Yang wrote: > > I have
Errorbarlogy
a data set as following and I want to plot errorbar on loglog scale. how to do it? Thank you. First thing I tried was errorbar(x,y,e/2);set(gca,'xscale','log','yscale','log') but got "Negative data ignored". Turns out it appears the x-dimension of the error bars are negative and are linear in length so they expand greatly at smaller x. If there isn't anything on TMW Code Central, I'd look at the errorbar function and see about fixing up horizontal error bars matlab the calculation of the error bars accounting for the x axis values. Sorry I don't have a better solution otoh... BTW, semilog (y) doesn't look too bad doing as above, but I'm sure that's not good enough... Subject: how to plot errorbar in loglog scale?--thanks a lot From: Duane Bozarth Date: 29 Jul, 2003 16:26:02 Message: 2 of 5 Reply to this message Add author to My Watch List View original format Flag as spam Duane Bozarth wrote: > > Sean Yang wrote: > > > > I have a data set as following and I want to plot errorbar on loglog scale. how to do it? Thank you. > > First thing I tried was > > errorbar(x,y,e/2);set(gca,'xscale','log','yscale','log') > > but got "Negative data ignored". Turns out it appears the x-dimension > of the error bars are negative and are linear in length so they expand > greatly at smaller x. > > If there isn't anything on TMW Code Central, I'd look at the errorbar > function and see about fixing up the calculation of the error bars > accounting for the x axis values. Sorry I don't have a better solution > otoh... > > BTW, semilog (y) doesn't look too bad doing as above, but I'm sure > that's not good enough... Actually, I p
toolboxes, and other File Exchange content using Add-On Explorer in MATLAB. » Watch video Highlights from ploterr ploterr.m View all files Join the 15-year community celebration. Play games and win prizes! » Learn more 5.0 5.0 | 17 ratings
Error Bar Width Matlab
Rate this file 43 Downloads (last 30 days) File Size: 5.86 KB File ID: errorbar matlab #22216 Version: 1.3 ploterr by Felix Zoergiebel Felix Zoergiebel (view profile) 4 files 54 downloads 4.5 23 Nov 2008 (Updated 14 Feb 2009) plots data with x and/or y error bars and supports logarithmic scaling for both axes. | Watch this File File Information Description ploterr is a universal tool for plotting data with error https://www.mathworks.com/matlabcentral/newsreader/view_thread/52022 bars. The following features are supported: - linear/logarithmic scaling - x and/or y error bars - relative/absolute errors - width of bar handles adjustable Basically it unifies the features of errorbarxy, errorbarloglog, errorbar_x and errorbar in one single program. For a detailed description and examples see the documentation in the file. The technique for plotting the error bars is adapted from MATLAB's v6 errorbar, which is also used by Goetz Huesken's https://www.mathworks.com/matlabcentral/fileexchange/22216-ploterr errorbar_x. With this technique the x error bars as well as the y error bars are one big line object, in contrast to errorbarloglog where each single error bar consists of three separate lines. That prevents an overflow of the legend with lots of separate line objects and makes it a lot easier to change the line style of the error bars. Acknowledgements Errorbar X inspired this file. This file inspired Errbar, Errorbarxy, and Superbar. MATLAB release MATLAB 7.4 (R2007a) Tags for This File Please login to tag files. data explorationerror barerrorbarerrorbar horizontalerrorbar logarithmicerrorbar_xerrorbarloglogherrorbarhorizontal errorbarlogarithmic errobarplotplot data Cancel Please login to add a comment or rating. Comments and Ratings (30) 10 Sep 2016 Mohammad Heriyanto Mohammad Heriyanto (view profile) 0 files 0 downloads 0.0 11 Nov 2015 William Barnes William Barnes (view profile) 0 files 0 downloads 0.0 Very useful but.... Is it possible to use a log10 rather than log (i.e. to use log base 10 rather than log base e) for the axes. For example, I tried log10x instead of log, but no joy. Comment only 25 Mar 2015 Presper Eckert Presper Eckert (view profile) 0 files 0 downloads 0.0 Excellent functionality and very useful! 04 Apr 2014 Nitsan Nitsan (view profile) 0 files 0 downloads 0
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business http://stackoverflow.com/questions/4393868/plotting-errorbars-in-the-logarithmic-domain-with-negative-values-matlab 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, 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 error bar x, which contains very small numbers that I calculated from a mean. I'd like to plot the logarithmic transform of x, say 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 error bars loglog 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 down vote accepted You can replace those values with a small value but log-able (say, 40 dB lower): minb = x-2*std_x; mask = (minb <= 0); minb(mask) = x/1e4; ... use 10*log10(minb) instead Or just threshold to some minimum: K = min(x) / 1e4; % so that K is 40 db below the smallest x ... use 10*log10(max(K, x-2*std_x)) instead. Or similar stuff. EDIT to summarize comments and further thoughts: One should probably think about why have error bars. Normally error bars tend to indicate some measure of confidence / probability (e.g. x% of the time, the value is between the indicated bounds). In th
be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 10 Oct 2016 14:17:28 GMT by s_ac15 (squid/3.5.20)