Path: news.mathworks.com!not-for-mail
From: "David " <dave@bigcompany.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to determine dimension of output array from Simulink to workspace?
Date: Wed, 5 Mar 2008 10:53:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <fqlu2f$idm$1@fred.mathworks.com>
References: <fqlrnf$m71$1@fred.mathworks.com>
Reply-To: "David " <dave@bigcompany.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1204714383 18870 172.30.248.37 (5 Mar 2008 10:53:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 5 Mar 2008 10:53:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 791003
Xref: news.mathworks.com comp.soft-sys.matlab:455471


"Yi Cao" <y.cao@cranfield.ac.uk> wrote in message 
<fqlrnf$m71$1@fred.mathworks.com>...
> I got some strange results. I have six variables from 
one 
> output port in Simulink. Then, I use a Demux to split 
them 
> into two groups: [2 4] and save these two as arrays into 
> the wrokspace. However, when I check the results, the 
array 
> with 2 variables has dimension N x 2, where N is the 
number 
> of samples, but the array with 4 variables is of 1 x 4 x 
N. 
> I do not understand why these two arrays have different 
> dimension arrangement. I cannot find anyway to specify 
the 
> array dimention in row or column direction. Anyone can 
help 
> on this?

i have seen this also and am not sure why it does that 
sometimes.  my answer was to put in a reshape block to 
take (in my case) the 256x1 array and turn it in to a 256 
element vector.