[Top][All Lists]

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

Re: problem plotting "N-d object"

From: Jordi Gutiérrez Hermoso
Subject: Re: problem plotting "N-d object"
Date: Sat, 18 Feb 2012 19:56:56 -0500

On 18 February 2012 18:41, Ben Abbott <address@hidden> wrote:
> On Feb 18, 2012, at 2:44 PM, CdeMills wrote:
>> Now, I often run simulations and collate 1D and 2D matrices into 3D, where
>> the third dim is the run number.  Auto-squeezing would be convenient, but I
>> think we should have a flag to tell plot "I know my data are 3D, but please
>> squeeze them." This way it is the INTENT to pass 3D data and have a 1D or 2D
>> plot.
> Thats a good idea !
> The plot function already accepts property name/value pairs. Is the syntax 
> below ok ?
>        plot (x, y, "-squeeze")

I don't find that much better than

    plot(squeeze(x), squeeze(y))

but it's your call.

- Jordi G. H.

reply via email to

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