Automating Signal Storage Class in M script
古いコメントを表示
How do I specify the storage class for a signal in m script? I would like to automate this process. For example, under signal properties-->RTW-->Storage Class....I would like to set the signal to Imported Extern.
Thanks in advance!
採用された回答
その他の回答 (2 件)
Titus Edelhofer
2012 年 4 月 14 日
Hi Brandon,
you set the properties with "dot" notation:
x = Simulink.Parameter;
x.Value = 2.0;
x.RTW.StorageClass = 'ImportedExtern';
The last command is probably not completely correct, because I have no MATLAB here to test ... The easiest is to typ x. and then Tab to get the list of "allowed" names.
Titus
Brandon
2012 年 4 月 17 日
0 投票
1 件のコメント
Titus Edelhofer
2012 年 4 月 18 日
Hi Brandon, sounds good. I would suggest to mark the question answered (by Kaustubha)...
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!