simulink variables reading error
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
hello evrybady; in may simulink project i have a structural variable (this variable behave 20 matrix),and i want to read this variable from simulink,but when i used 'Fromworkspace' they give me error. please help me
1 Commento
Azzi Abdelmalek
il 6 Ago 2012
can you explain how this variable will be used?
Risposte (3)
Kaustubha Govind
il 6 Ago 2012
1 voto
See this documentation page for information on using a structure as the Value parameter in the Constant block.
4 Commenti
latsi lab
il 6 Ago 2012
latsi lab
il 8 Ago 2012
Kaustubha Govind
il 8 Ago 2012
Oops. Looks like the Constant block added support for bus signals only in R2010b. You might want to check if you are able to import your data using the Inport block in your version. Note that you will need to create timeseries objects. It appears that the From Workspace block also supports importing bus signals in the form of a structue of timeseries objects, just like the Inport block.
Azzi Abdelmalek
il 6 Ago 2012
0 voti
don't use from workspace, just use a "Constant" block
latsi lab
il 6 Ago 2012
Questa domanda è chiusa.
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!