help-octave
[Top][All Lists]
Advanced

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

Re: Plots vs. 3D matrices


From: Joe Koski
Subject: Re: Plots vs. 3D matrices
Date: Fri, 02 Apr 2004 09:50:03 -0700
User-agent: Microsoft-Entourage/10.1.4.030702.0

on 4/2/04 5:44 AM, Paul Kienzle at address@hidden wrote:

> try going into plot.m and __plt*__.m putting squeeze(v) in strategic
> places.   This removes extra singleton dimensions.
> 
> This is a hack to get you working.   I don't know what the proper
> fix is.
> 
> - Paul

OK, I'll give it a try. That beats setting up a zillion local 1-D copies
that will just become useless later.

Joe

> 
> On Apr 1, 2004, at 8:43 PM, Joe Koski wrote:
> 
>> With Octave 2.1.55, I'm adapting a Matlab script that uses 3D
>> matrices. I
>> have a plot command that looks like this
>> 
>>   plot(t(stopps(k,i):finps(k,i)),mps(k,stopps(k,i):finps(k,i),i))
>> 
>> which gives errors of the type
>> 
>> gnuplot> pl '/var/tmp/oct-VCIiXm' t "line 1"
>>                                             ^
>>          line 0: Can't plot with an empty y range!
>> 
>> If I copy t and mps into local vectors, the problem seems to
>> disappear, at
>> least for that one line, but there are many such occurrences.
>> 
>> My questions:
>> 
>> 1) Is this a known problem with octave-2.1.55? (or is it something
>> else?)
>> 
>> 2) Is my diagnosis correct? It appears the plot command doesn't want
>> to copy
>> the matrix values into local vectors for plotting with gnuplot. It
>> could
>> also be a parsing error caused by that extra ,i in the line.
>> 
>> 3) Has this been corrected in later versions of octave?
>> 
>> Thanks.
>> 
>> Joe Koski
>> 
>> 
>> 
>> -------------------------------------------------------------
>> Octave is freely available under the terms of the GNU GPL.
>> 
>> Octave's home on the web:  http://www.octave.org
>> How to fund new projects:  http://www.octave.org/funding.html
>> Subscription information:  http://www.octave.org/archive.html
>> -------------------------------------------------------------
>> 
> 



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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