Masking and base workspace
2 ビュー (過去 30 日間)
古いコメントを表示
I have a structure called "uwb" in base workspace. Under uwb structure I have another structure called "channel". Under channel I have got two variables a & b . Now I want to create a subsystem. I want to mask the block. My problem is I have to use the variables a & b for the initialization of the masked subsystem. How can I include a & b in initialization commands of the subsystem while masking.
0 件のコメント
採用された回答
TAB
2012 年 4 月 6 日
Initialization commands cannot access base workspace variables, it can only access the variables from Mask workspace.
Pass two more values from the subsystem mask say init_a & init_b.
In initializarion pane write
a = init_a;
b = init_b;
In the parameters dialog pass-
init_a as --> uwb.channel.a
and
init_b as --> uwb.channel.b
0 件のコメント
その他の回答 (1 件)
Kaustubha Govind
2012 年 4 月 5 日
Not sure if I understand your question correctly, but try this in your Mask Initialization:
a = uwb.channel.a;
b = uwb.channel.b;
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Author Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!