From: Wes on 10 Aug 2010 16:33 what's wrong with my last line? It doesn't change y scale. =========== x = [1 2]; y = [2 3]; h1 = errorbar(x,y) set(h1,'ylim',[0 10]) ============ Thanks
From: dpb on 10 Aug 2010 16:33 Wes wrote: > what's wrong with my last line? It doesn't change y scale. > =========== > x = [1 2]; > y = [2 3]; > h1 = errorbar(x,y) > set(h1,'ylim',[0 10]) > ============ > Thanks From errorbar help... " H = ERRORBAR(...) returns a vector of line handles." You need the axis handle...see help gca --
From: Walter Roberson on 10 Aug 2010 16:53 dpb wrote: > Wes wrote: >> what's wrong with my last line? It doesn't change y scale. >> =========== >> x = [1 2]; >> y = [2 3]; >> h1 = errorbar(x,y) >> set(h1,'ylim',[0 10]) >> ============ >> Thanks > > From errorbar help... > > " H = ERRORBAR(...) returns a vector of line handles." Looks like now it returns a vector of errorbarseries handles > You need the axis handle...see Yep, I agree.
|
Pages: 1 Prev: determine speed bottleneck in code Next: Using data structures in Simulink |