Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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
May 22, 2003
1
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!
 
Replies continue below

Recommended for you

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