My question was showed in a picture. https://www.opendrive.com/files/?Ml8yOTY2NjJfa0Z4Z3E fig1 is a block I have established.fig2 is the input panel(NUM).In a system I need many A block,but has a"To Workspace"in A will error. I hope if I give a NUM is "1" ,the "To Workspace" can change its Variable name into "A_out1" automatically,and if the NUM input is "2" it can be changed into "A_out2".
MATLAB: How to change the variable name of “to workspace” dynamically
matlab/simulink
Related Question
- How to show a result from scope to basic graph and show the parameters
- How to replace a Constant block with a From Workspace block programatically
- Are To Workspace blocks ignored during code generation with Real Time Workshop 7.0 (R2007b)
- Saving a variable from a function with a different name
- Simulink-Blockmask: How to add a button and assign a callback by m-file script
Best Answer