[Top][All Lists]

[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. 

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));
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 ?



View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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