Info

This question is closed. Reopen it to edit or answer.

Is it possible to use an expression in a Simulink Model Block Paramerer, like a reference to the Path/Subsystem the block is in?

1 view (last 30 days)
With this possible, I could copy some Subsystems containing many blocks, which have the same reference to a parameter variable in the Matlab workspace.
  2 Comments
Lars Schneider
Lars Schneider on 20 Jan 2016
Hi, thanks for the answer.
This, actually, didn't meet my question. What I meant is this: Having a Subsystem called "line1" in which there is a block gain whose value parameter should be "gain.line1" (reference to a struct in the workspace). Copying this subsystem to "line2" the gain block in this new subsystem should have the parameter "gain.line2". Of course I could edit every parameter by hand or by script, but thats not the intention. Is there a way for this method?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!