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!