help-octave
[Top][All Lists]
Advanced

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

Re: AW: Please help


From: Henry F. Mollet
Subject: Re: AW: Please help
Date: Fri, 25 Mar 2005 13:38:27 -0800
User-agent: Microsoft-Entourage/10.1.1.2418

octave:4> x =linspace (0, 2*pi,100);
octave:7> y=x;
octave:8> [xx,yy]=meshgrid (x,y);
octave:9>  z = sin(xx).*cos(yy);
octave:10> whos
prot  type                       rows   cols  name
====  ====                       ====   ====  ====
 rwd  matrix                        1    100  x
 rwd  matrix                      100    100  xx
 rwd  matrix                        1    100  y
 rwd  matrix                      100    100  yy
 rwd  matrix                      100    100  z

octave:11> mesh (x,y,z)
octave:12> contour(z)
See attached.
Henry


on 3/25/05 12:17 PM, Martin Ranftler at address@hidden wrote:

> Thanks, Henry,
> but my Problem is threedimensional..
> 
> Martin
> 
> -----Ursprüngliche Nachricht-----
> Von: Henry F. Mollet [mailto:address@hidden
> Gesendet: Freitag, 25. März 2005 20:41
> An: Martin Ranftler; Octave_post
> Betreff: Re: Please help
> 
> octave:2> x =linspace (0, 2*pi,100);
> octave:3> plot (x,sin(x))
> See attached.
> Henry
> N.B. sin(x)*cos(y) will have to become
> sin(x).*cos(y) for element by element multiplication
> and you have to use a meshgrid to generate all the value of
> z = sin(x)*cos(y) given range of x and y values,
> if I understand correctly what you're trying to plot.
> 
> 
> 
> on 3/25/05 10:42 AM, Martin Ranftler at address@hidden wrote:
> 
>> Hi, I am new..
>> 
>> And have some problems of a typical beginner.
>> 
>> 
>> 
>> 
>> 
>> It is easy to plot from gnuplot: splot sin(x)*cos(y)
>> But the same example from octave (gsplot..) results in errormessages..
>> Does somebody have an example for me?
>> 
>> Another question: How can I unset parametric from Octave?
>> 
>> 
>> 
>> Where can I find good examples for plotting?
>> 
>> 
>> 
>> Is it possible to use filenames for saved plotfiles which include e.g. the
>> present date or time?
>> 
>> (e.g. plotfile_2004_05_25_19_35.emf    or so..)
>> 
>> 
>> Thanks  
>> Martin
>> 
>> 
> 
> 

Attachment: Demo3dPlot.pdf
Description: Binary data

Attachment: DemoContourPlot.pdf
Description: Binary data


reply via email to

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