From: Matthew on
For a DYNAMICALLYSIZED input port, that is a matrix, the above command appears to return m*n. Is there a way to find out what m (rows) and n(cols) are individually such that you can tell the difference between a 3x2 and a 2x3 matrix?
From: Phil Goddard on

You need to use a combination of
ssGetInputPortNumDimensions
and
ssGetInputPortDimensions

Have a look at the s-function doc for a list of other macros that may be of use too depending on any given situation.

Phil.
From: Matthew on
"Phil Goddard" <philNOSPAM(a)goddardconsulting.ca> wrote in message <hig1ip$sb1$1(a)fred.mathworks.com>...
>
> You need to use a combination of
> ssGetInputPortNumDimensions
> and
> ssGetInputPortDimensions
>
> Have a look at the s-function doc for a list of other macros that may be of use too depending on any given situation.
>
> Phil.

ssGetInputPortDimensions is exactly what I needed, thanks