help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stem.m


From: Henry F. Mollet
Subject: Re: stem.m
Date: Sat, 10 Mar 2007 18:57:00 -0800
User-agent: Microsoft-Entourage/11.1.0.040913

Stem.m exists/is available via octave-forge. See below.
Henry
octave:2> help stem.m

stem.m is the file:
/usr/local/share/octave/2.1.71/site/m/octave-forge/plot/stem
.m

usage: stem(x, [,y] [, linetype])

Draws struts for each point, overlaid on another line type. This is
just:
    plot(x, y, linetype, x, y, "^;;")
but with the pointsize increased so that you can see the symbols
clearly.  By default, linetype is "o;;" so that circles are
connected to the x-axis with struts.

Note that a plot can only support one point size, so if you are
plotting multiple plots, do stem last to keep large points.

Example
   t=0:0.1:2*pi; x=sin(t); idx=1:4:length(t);
   plot(t,x,"r-+;sin(x);"); hold on
   stem(t(idx), x(idx),"bo;struts;"); hold off


Additional help for built-in functions, operators, and variables
is available in the on-line version of the manual.  Use the command
-- less -- (f)orward, (b)ack, (q)uit



on 3/10/07 2:27 PM, Quentin Spencer at address@hidden wrote:

> Michael Hahn wrote:
>> I have installed Octave on openSUSE 10.2 with the YaST paket manager. I need
>> the function stem() but there is no file calles stem.m
>> What can I do?
>>   
> 
> The octave-forge package has stem.m. I haven't used it, so I don't know
> how well it works, but I would imaging openSuSE has octave-forge available.
> 
> Quentin
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave




reply via email to

[Prev in Thread] Current Thread [Next in Thread]