help-octave
[Top][All Lists]
Advanced

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

Re: Plotting a selected vector from a 3D data set


From: Przemek Klosowski
Subject: Re: Plotting a selected vector from a 3D data set
Date: Thu, 7 Dec 2006 14:41:31 -0500 (EST)

The problem is not with plotting but with a general n-dimensional 
slab operators. If m = rand(2,2,2), m(:,1,1) returns  a column vector
which can be transposed:

    m(:,1,1)'           ans =    0.32978   0.58595

while m(1,1,:) returns the following, which cannot be transposed:

    ans(:,:,1) =  0.32978
    ans(:,:,2) =  0.37252

Plot needs to transpose the data: the following workaround can be
used, but is ugly:

    plot(a(1,1,:)(:))


reply via email to

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