Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

list inputs to simulink subsystem

226 views
Skip to first unread message

Adam Chapman

unread,
Jun 13, 2011, 7:58:56 AM6/13/11
to
Is there a matlab function which gets the names of all inputs ports to
a simulink subsystem block?

I'm looking for something that fuunctions similarly to the get_param
function, which lists all parameters of a block.

I have a subsystem that takes about 50 input signals and really don't
want to waste my life listing them all by hand for the accompanying
documantation!

Adam Chapman

unread,
Jun 13, 2011, 9:34:25 AM6/13/11
to
On Jun 13, 12:58 pm, Adam Chapman <adamchapman1...@hotmail.co.uk>
wrote:

Here's the answer:

handles=find_system('MyModel/
MySubsystemBlockName','FindAll','On','SearchDepth',
1,'BlockType','Inport');
InportNames=get(handles,'Name');

Sven glöyer

unread,
Jul 21, 2016, 3:22:09 AM7/21/16
to
Adam Chapman <adamcha...@hotmail.co.uk> wrote in message <b2295d74-fed9-470a...@b21g2000yqc.googlegroups.com>...
Does it also work for Outputs?
0 new messages