From: Alan B on 28 Jul 2010 09:49 "William " <william.baxter(a)oit.edu> wrote in message <i2npdj$ofp$1(a)fred.mathworks.com>... > Or, said OP "Humpty Dumpty" never had a problem with it graphing sideways? > I noticed the comments were incorrect, but it was also in the incorrect x/y order...so it always graphed correctly. Thanks I fixed this about 8 posts ago. As I suggested many posts ago: zeroind = find(f<0,1); % find index of first point below y=0 set(gca,'xlim',[min(h), h(zeroind)],'ylim',[f(zeroind), max(f)]) %Graphical restrictions Again, you will need additional logic if you want this to work for both "plots in the positive direction" and "plots in the negative direction", but this should work fine for the former.
First
|
Prev
|
Pages: 1 2 3 4 5 6 Prev: MTech project on Matlab/Simulink in the field of electronics Next: Distribute Matlab figures |