help-octave
[Top][All Lists]
Advanced

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

Re: printing submatrices of a multidimensional matrix


From: c.
Subject: Re: printing submatrices of a multidimensional matrix
Date: Wed, 22 Jan 2014 13:05:02 +0100

On 22 Jan 2014, at 12:57, oxy <address@hidden> wrote:

> It works for some combinations of dimensions,
> for example matrix(:, :, 1, 1) will give you a submatrix
> and i can mesh-plot it. However matrix(1, 1, :, :) will
> give me a set of vectors, which i cannot use as input
> to mesh.

you can use 

 squeeze (matrix(1, 1, :, :))

to remove singleton dimensions.

HTH,
c.


reply via email to

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