From: Pia on
Hi,
I'm trying to use an embedded matlab function. In the embedded matlab function, I index matrix 'a' with 5 rows and 1 column as:

a=zeros(5,1);

However, when I output the matrix to the workspace as an array, the dimensions of the matrix are 5 x 1 x k, where k seems to correspond with the dimension of a different, unrelated array.

Can someone please tell me how to index a matrix correctly?

Thanks.
From: Michael Hosea on
Are you sure the k columns don't just correspond to time steps in the
Simulink model?
--
Mike


"Pia " <p.sartor(a)sheffield.ac.uk> wrote in message
news:hehag7$lf5$1(a)fred.mathworks.com...
> Hi,
> I'm trying to use an embedded matlab function. In the embedded matlab
> function, I index matrix 'a' with 5 rows and 1 column as:
>
> a=zeros(5,1);
>
> However, when I output the matrix to the workspace as an array, the
> dimensions of the matrix are 5 x 1 x k, where k seems to correspond with
> the dimension of a different, unrelated array.
>
> Can someone please tell me how to index a matrix correctly?
>
> Thanks.


 | 
Pages: 1
Prev: Hair detection
Next: kstest2 p-value