help-octave
[Top][All Lists]
Advanced

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

Re: error while plotting


From: bharat pathak
Subject: Re: error while plotting
Date: Fri, 11 Jul 2008 10:47:48 +0530

Hello Srinivas,
 
       You are trying to create cell arrays though that is not your intention.
 
        Try this.
 
        a = [1 2 3];
        b = [1 4 9];
        plot(a, b);
 
Regards
Bharat Pathak
 
Arithos Designs
www.Arithos.com
 
A Premier DSP Design Consultancy and Corporate Training Company
 
 

Sent: Friday, July 11, 2008 10:25 AM
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
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.4.7/1545 - Release Date: 10-07-2008 18:43


_______________________________________________
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]