Path: news.mathworks.com!not-for-mail
From: "Yi Cao" <y.cao@cranfield.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: How to determine dimension of output array from Simulink to workspace?
Date: Wed, 5 Mar 2008 10:13:03 +0000 (UTC)
Organization: Cranfield University
Lines: 10
Message-ID: <fqlrnf$m71$1@fred.mathworks.com>
Reply-To: "Yi Cao" <y.cao@cranfield.ac.uk>
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 1204711983 22753 172.30.248.37 (5 Mar 2008 10:13:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 5 Mar 2008 10:13:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 69713
Xref: news.mathworks.com comp.soft-sys.matlab:455463


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?