help-octave
[Top][All Lists]
Advanced

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

Re: reducing dimensionality


From: Martin Helm
Subject: Re: reducing dimensionality
Date: Sun, 23 Sep 2012 23:17:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0

Am 23.09.2012 23:11, schrieb Jon Feldman:
> I have a 1000x10x89 size matrix S, which is really just 
> 1000   10x89 matrices.  I want to be able to retrieve 
> one of these matrices, so I tried
>
> R = S(1,:,:) where I would like R to have the dimensions
> 10x89, but it has dimensions 1x10x89.  How do I fix
> this?
>
> Thanks
>
In that special case squeeze should do what you want
R = squeeze(S(1,:,:));



reply via email to

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