I have a structure called “uwb” in the base workspace. Under the uwb structure I have another structure called “channel”. Under channel I have got two variables, a and b. Now I want to create a subsystem. I want to mask the block. My problem is I have to use the variables a and b for the initialization of the masked subsystem. How can I include a and b in initialization commands of the subsystem while masking?
I have a structure called uwb in the base workspace. Under the uwb structure
Share
After creating a mask for the subsystem:
maskaandmaskb).maskaandmaskb. Apply your changes close the mask editor window.uwb.channel.aanduwb.channel.bto assign their values tomaskaandmaskbrespectively.As long as the
uwbstruct is in the base workspace when the model is initialized to run, the masked subsystem will evaluate and assign theaandbappropriately.(I just tried it out and it seems to work fine, here is the model as a reference: http://sfwn.in/Fejp)