simulink variables reading error
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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 Comment
Azzi Abdelmalek
on 6 Aug 2012
can you explain how this variable will be used?
Answers (3)
Kaustubha Govind
on 6 Aug 2012
1 vote
See this documentation page for information on using a structure as the Value parameter in the Constant block.
4 Comments
latsi lab
on 6 Aug 2012
latsi lab
on 8 Aug 2012
Kaustubha Govind
on 8 Aug 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
on 6 Aug 2012
0 votes
don't use from workspace, just use a "Constant" block
latsi lab
on 6 Aug 2012
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!