From: Wiater on 8 Jun 2010 12:14 Hi, I'm trying to plot a simple bar plot that should contain 3 bars. I write: bar([1 2 3],[0.23 0.45 0.533],'r') this function should plot 3 bars of high: 0.23 0.45 an 0.533, instead my Matlab creates sqare 1x1 filled with red and hell knows how long horizontal line at y=0. the same thing happens when I try to plot the examples from Help. Any idea what is wrong with my matlab...or with me?:) maybe i'm doing something wrong?
From: Steven Lord on 8 Jun 2010 13:08 "Wiater" <wiater(a)poczta.onet.pl> wrote in message news:hulq2a$hir$1(a)news.onet.pl... > Hi, I'm trying to plot a simple bar plot that should contain 3 bars. > I write: > bar([1 2 3],[0.23 0.45 0.533],'r') > this function should plot 3 bars of high: 0.23 0.45 an 0.533, > > instead my Matlab creates sqare 1x1 filled with red and hell knows how > long horizontal line at y=0. > > the same thing happens when I try to plot the examples from Help. > > Any idea what is wrong with my matlab...or with me?:) maybe i'm doing > something wrong? Start off by making sure you're using the version of bar that ships with MATLAB. Type this command: which -all bar You should see the bar function in toolbox/matlab/specgraph; you may also see one in toolbox/finance. If you see any others, rename or remove them. Then try it again. If that doesn't resolve the problem, you should work with Technical Support to determine the cause of the problem. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Walter Roberson on 8 Jun 2010 13:37 Wiater wrote: > Hi, I'm trying to plot a simple bar plot that should contain 3 bars. > I write: > bar([1 2 3],[0.23 0.45 0.533],'r') > this function should plot 3 bars of high: 0.23 0.45 an 0.533, > > instead my Matlab creates sqare 1x1 filled with red and hell knows how long > horizontal line at y=0. Please try which -all bar as you may have another routine named bar somewhere in your path.
From: Wiater on 8 Jun 2010 15:40 > > Please try > > which -all bar > > as you may have another routine named bar somewhere in your path. unfortunatelly, it didn't help. but thanks anyway. now i have to use bar3 function and rotate it, so it looks like bar (thank god its only one graph)
|
Pages: 1 Prev: How to get the right substring of strings? Next: Initial value of Embedded Matlab Function |