From: Matthew on 11 Jan 2010 13:24 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 11 Jan 2010 15:27 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 14 Jan 2010 06:33 "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
|
Pages: 1 Prev: vegetable and fruits detection Next: MATLAB on .NET without MCR? |