Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

From Workspace Block

Status
Not open for further replies.

lindav

Aerospace
Joined
May 22, 2003
Messages
1
Location
US
Is there a way to import a matrix from the workspace and preserve it matrix'ness?

I am trying to use the "From Workspace" block but it wants a structure-with-time format and I need it in matrix format for the Assignment or Selector block. Ultimately, I want to access a particular element of a matrix using dynamic counters for each time step.

Sorry if this is a silly question, I am a newbie.

Thanks!
 
Instead of using the workspace block you can use the constant block. If you put the name of your matrix into the constant block instead of a number, the model will get the matrix from the workspace.
You can also put one constant block for every element of the matrix into your model.
I hope this helps.

Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top