help-octave
[Top][All Lists]
Advanced

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

Re: problem plotting "N-d object"


From: CdeMills
Subject: Re: problem plotting "N-d object"
Date: Tue, 21 Feb 2012 02:29:01 -0800 (PST)

bpabbott wrote
> 
> 
> 
> I had thought broadcasting would require the dot type operator ".+" and
> that "+" would behave in a strict/pedantic manner (as with multiplication
> and division).
> 
> In any event, I do think there is a parallel to be drawn for N-d plotting. 
> 
Ben,

I had the same idea.

I often run simulations, producing 2D arrays at each step, and collating
everything in a 3D array.

Then I plot everything as:

hold on; resu = [];
for inds = (Nsimu:-1:1)
  resu(inds, 1) = plot(somevar(:, :, inds));
endfor
hold off

That is, the third dim is "peeled" slice by slice, and all 2D graphs are
concatenated together.  Similary, the result is a vector a graph handles.
Would this seems an acceptable way to "plot" a 3D array ?

Regards

Pascal

--
View this message in context: 
http://octave.1599824.n4.nabble.com/problem-plotting-N-d-object-tp4397525p4406599.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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