Error Bars On Log Scale
Contents |
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 Browse
Error Bar Log Scale Matlab
More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB Central Community logarithmic error bars Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent
Error Bars In Excel
Activity Flagged Content Flagged as Spam Help Trial software MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,574 Vote0 How can I use the ERRORBAR function with how to calculate error bars a logarithmic axis in MATLAB? Asked by MathWorks Support Team MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,574 on 27 Jun 2009 Latest activity Commented on by Ohad BarSimanTov Ohad BarSimanTov (view profile) 0 questions 0 answers 0 accepted answers Reputation: 0 on 27 Jul 2016 Accepted Answer by MathWorks Support Team MathWorks Support Team (view profile) 13,593 error bars in excel 2013 questions 13,593 answers 13,592 accepted answers Reputation: 2,574 227 views (last 30 days) 227 views (last 30 days) When I type the following at the MATLAB prompt, I get a an errorbar with a log x axis:x = 1:100; y = sin(x); e = std(y)*ones(size(x)); errorbar(x,y,e) set(gca,'xscale','log') However, the errorbars of the first point in the resulting figure extend much farther than the other errorbars. I would like a function that can account for the logrithmic X-axis and make all of the errorbars have a uniform width. 1 Comment Show all comments Ohad BarSimanTov Ohad BarSimanTov (view profile) 0 questions 0 answers 0 accepted answers Reputation: 0 on 27 Jul 2016 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/99844#comment_381798 This is what I got after using others comments, here and stack overflow.errorbar(X,Y,E,'bo','linewidth',2) c=get(gca,'Children'); for i=1:length(c); set(c(i),'XData',get(c(i),'YData'),'YData',get(c(i),'XData')); end; axis([10^-5 10^-3 0.4 1]) % This is just to set the (Y and X) axis (flipped) set(gca,'xscale','log'); % set X log scale view(-90, 90) % Swap the axes if you want Y log scale (you can ignore from here on) set(gca, 'ydir', 'reverse'); % Reverse the y-axis (Optional step) if true % code endThis
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link
Error Bars In R
Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity how to read error bars Flagged Content Flagged as Spam Help MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader
Error Bars Spss
Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help Trial software Adam Goldsmith (view profile) 3 questions 0 answers 0 https://www.mathworks.com/matlabcentral/answers/99844-how-can-i-use-the-errorbar-function-with-a-logarithmic-axis-in-matlab accepted answers Reputation: 1 Vote1 How do I get working y-axis 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 https://www.mathworks.com/matlabcentral/answers/241261-how-do-i-get-working-y-axis-errorbars-using-a-log-scale 8 Sep 2015 81 views (last 30 days) 81 views (last 30 days) I'm trying to plot 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
be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 10 Oct 2016 12:26:47 GMT by s_wx1094 (squid/3.5.20)
Bifilar Pendulum Report Writing Feedback Skills Sessions Audit Discovery Sessions Introduction LRC Circuits Semiconductors Gravity Enterprise Seminar Full Sessions Introduction Radioactivity Newton's Rings Speed of Light Coulomb's Law Biot Savart Law Precision Interferometer Prism Spectrometer X-rays & Atomic Spectra Archive Hall Probe Polarisation by reflection and the brewster angle Electron Charge to Mass Ratio Planck's Constant Galvanometer Rotary Dispersion ISEs Interactive Screen Experiments Speed of Light Interferometer Angular Vernier Scale Spectrometer Callipers Vernier Callipers Micrometer Level 2 Welcome to Level 2 Introduction Contacts Assessment Reading List Bridge Project Introduction Example Project Past Projects Skills Labs Introduction χ2 Viscosity of Water Python Cryogenics Skills Audit Electronics Introduction Supporting Lectures Filters Operational Amplifiers Modulation Skills Audit Research-led investigation Introduction Experiments Solitons Viscometry Optical Fourier Transforms Low Temperature Conductivity Optical Rotation Thermal and Mechanical Properties Solar Studies Astronomical Image Analysis Level 3 Welcome to Level 3 Safety Contacts Assessment Books to consult Atomic and Optical Physics Projects Safety More information Astrophysics Projects Safety Information Introduction Aims AstroLab Staff Telescopes Technical Information Observing Notes Reduction and Analysis Python Links Telephone Local Weather News Finding Links Telescope status Nuclear Physics Projects Safety More information Glossary Condensed Matter Physics Projects Safety Level 4 Welcome to Level 4 Team Projects Welcome to Level 3 Team Projects Details For clients For students previous clients/projects list Computing Level 1 Overview Projects Assessment Level 2 Overview Projects Assessment Level 3 Overview Projects Condensed/Soft Matter Physics Astronomy & Astrophysics Particle Physics Atomic & Optical Physics Assessment Linux Resources Python Resources Other Languages Fortran C++ Skills Welcome to Skills Laboratory Notebook Skills Lab Skills Circuits Circuit Basics Ohms Law Resistors Capacitors Inductors Kirchhoff's Laws Potential Dividers Circuits Test Multimeters Capacitance Meters Function Generators Oscilloscopes The Oscilloscope Oscilloscope Guide BNC Adapters Lissajous Figures