help-octave
[Top][All Lists]
Advanced

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

Re: Errata: Re: How to plot the sum of two vectors


From: Michael Goffioul
Subject: Re: Errata: Re: How to plot the sum of two vectors
Date: Mon, 7 Apr 2008 09:10:22 +0200

Your data are complex. What do you actually want to plot?
If you want to plot the real part, you can try

plot (real (z3))

If you want to plot z3 in the complex plane, you can try

plot (real(z3), imag(z3), 'o')

[Note: the 'o' argument is to plot the data using circle markers only]

Michael.


On Sun, Apr 6, 2008 at 10:58 PM, Nano Taboada <address@hidden> wrote:
> Update/errata:
>
>      I've installed the gnuplot package (curiously enough it's not
>  available with my distro's default installation), so now I'm having an
>  Argand diagram but still without the vectors drawn:
>
>  http://allyoucanupload.webshots.com/v/2003237768730978056
>
>      Thanks much in advance,
>
>  Nano Taboada wrote:
>  > Hello everybody,
>  >
>  >      I'm totally new to Octave and with the help of some online docs I
>  > was trying to plot the following:
>  >
>  > octave:1> clear
>  > octave:2> z1 = 2+i;
>  > octave:3> z2 = 1+i;
>  > octave:4> z3 = z1+z2;
>  > octave:5> plot(z3)
>  >
>  >      but received these error messages:
>  >
>  > sh: gnuplot: not found
>  > warning: broken pipe -- some output may be lost
>  > sh: gnuplot: not found
>  > error: Version numbers must be a single row
>  > error: evaluating if command near line 73, column 3
>  > error: called from `compare_versions' in file
>  > `/usr/share/octave/2.9.12/m/miscellaneous/compare_versions.m'
>  > error: evaluating static command near line 35, column 5
>  > error: evaluating if command near line 29, column 3
>  > error: called from `__go_draw_axes__' in file
>  > `/usr/share/octave/2.9.12/m/plot/__go_draw_axes__.m'
>  > error: evaluating switch command near line 57, column 4
>  > error: evaluating for command near line 55, column 2
>  > error: evaluating if command near line 37, column 7
>  > error: evaluating if command near line 30, column 5
>  > error: evaluating if command near line 29, column 3
>  > error: called from `__go_draw_figure__' in file
>  > `/usr/share/octave/2.9.12/m/plot/__go_draw_figure__.m'
>  > error: evaluating if command near line 61, column 6
>  > error: evaluating if command near line 58, column 4
>  > error: evaluating if command near line 56, column 2
>  > error: evaluating for command near line 55, column 7
>  > error: evaluating if command near line 38, column 5
>  > error: called from `drawnow' in file
>  > `/usr/share/octave/2.9.12/m/plot/drawnow.m'
>  >
>  >
>  >      I'd really appreciate if someone could help me out, thanks much in
>  > advance!
>  > _______________________________________________
>  > Help-octave mailing list
>  > address@hidden
>  > https://www.cae.wisc.edu/mailman/listinfo/help-octave
>  _______________________________________________
>  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]