Automating Signal Storage Class in M script
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (2)
Titus Edelhofer
el 14 de Abr. de 2012
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
el 17 de Abr. de 2012
0 votos
1 comentario
Titus Edelhofer
el 18 de Abr. de 2012
Hi Brandon, sounds good. I would suggest to mark the question answered (by Kaustubha)...
Categorías
Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!