From: Chuck Dunnigan on
Most of the default origin for these plots is Zero. i wish to set a different value. What should function or identifier should I use to set this numerical value?
From: Steven Lord on

"Chuck Dunnigan" <chudvaz(a)aol.com> wrote in message
news:hpnsfn$het$1(a)fred.mathworks.com...
> Most of the default origin for these plots is Zero. i wish to set a
> different value. What should function or identifier should I use to set
> this numerical value?

I'm not certain what you're referring to when you use the term 'default
origin'. If you're referring to the base level for the STEM3 plot, change
the BaseValue property of the stemseries object returned by STEM3.

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/stemseriesproperties.html

If you're referring to the fact that stem3(Z) puts the stem points at x = 1,
2, 3, ... and y = 1, 2, 3, ... then call STEM3 with the (x, y, z) syntax
rather than just the (z) syntax.

[x, y, z] = peaks;
h = stem3(x, y, z);
set(h, 'BaseValue', -10)

If you're referring to something else, please clarify.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


 | 
Pages: 1
Prev: Switch statements
Next: paired two tailed t-test2