simulink variables reading error

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 Kommentar

Azzi Abdelmalek
Azzi Abdelmalek am 6 Aug. 2012
can you explain how this variable will be used?

Antworten (3)

Kaustubha Govind
Kaustubha Govind am 6 Aug. 2012

1 Stimme

See this documentation page for information on using a structure as the Value parameter in the Constant block.

4 Kommentare

latsi lab
latsi lab am 6 Aug. 2012
hello Kaustubha, i can't acced to the documentation page
TAB
TAB am 7 Aug. 2012
Bearbeitet: TAB am 7 Aug. 2012
Find this one.
latsi lab
latsi lab am 8 Aug. 2012
hello, i use Matlab R2009a, i cant find the examples in may version
Kaustubha Govind
Kaustubha Govind am 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
Azzi Abdelmalek am 6 Aug. 2012

0 Stimmen

don't use from workspace, just use a "Constant" block
latsi lab
latsi lab am 6 Aug. 2012

0 Stimmen

when i use the Constant block they give me the following error: invalid sitting in 'untitled/constant' for parametre 'value'
this is the value and size of may variable HMM: HMM =
pi: [4x1 double]
trans: [4x4 double]
means: [12x4x4 double]
vars: [4-D double]
mm: [4x4 double]
i will use them in the racognise block in simulink

Diese Frage ist geschlossen.

Produkte

Gefragt:

am 6 Aug. 2012

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by