help-octave
[Top][All Lists]
Advanced

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

RE: error while plotting


From: de Almeida, Valmor F.
Subject: RE: error while plotting
Date: Fri, 11 Jul 2008 01:53:13 -0400

Use a vector instead.

a = [1,2,3];
b = [1,4,9];

--
Valmor

> -----Original Message-----
> From: Srinivasa Ramanujam [mailto:address@hidden
> Sent: Friday, July 11, 2008 12:55 AM
> To: address@hidden
> Subject: error while plotting
> 
> Dear Sir/Madam,
> 
> I recently downloaded the latest version of Octave from internet. The
> installation was successful, and when I tried to execute a simple code
to
> plot the variables a and b, I received the following error message.
> 
> 
> 
>       octave-3.0.1.exe:1> a={1,2,3};
>       octave-3.0.1.exe:2> b={1,4,9};
>       octave-3.0.1.exe:3> plot(a,b)
>       error: mapper: wrong type argument `cell'
>       error: evaluating argument list element number 1
>       error: evaluating argument list element number 1
>       error: if: error evaluating conditional expression
>       error: evaluating if command near line 42, column 3
>       error: called from `__plt2__' in file `C:\Program Files
> (x86)\Octave\share\octav
>       e\3.0.1\m\plot\__plt2__.m'
>       error: evaluating assignment expression near line 76, column 10
>       error: evaluating if command near line 75, column 4
>       error: evaluating if command near line 55, column 2
>       error: evaluating if command near line 54, column 7
>       error: evaluating while command near line 41, column 5
>       error: evaluating if command near line 28, column 3
>       error: called from `__plt__' in file `C:\Program Files
> (x86)\Octave\share\octave
>       \3.0.1\m\plot\__plt__.m'
>       error: evaluating assignment expression near line 187, column 9
>       error: called from `plot' in file `C:\Program Files
> (x86)\Octave\share\octave\3.
>       0.1\m\plot\plot.m'
>       octave-3.0.1.exe:3>
>       gnuplot> plot "-";
>                     ^
>                line 1: Bad data on line 1
> 
> 
>       gnuplot> e
>                ^
>                line 1: invalid command
> 
> 
> 
> I've installed octave for windows version and am running Windows XP
> Professional edition (64 bit) on my computer. Can you please help me
to
> fix this issue?
> 
> --
> Srinivasa Ramanujam. K
> Project Officer
> Room No. 107,
> Heat Transfer & Thermal Power Lab,
> Department of Mechanical Engineering,
> IIT Madras, Chennai - 600 036.
> home    : http://sramanujam.k.googlepages.com
> mob no : +91 9884325562
> office no: 044 22575659



reply via email to

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