Import variables from Matlab

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
hyunee
Posts: 21
Joined: Thu Dec 13, 2012 12:21 am
Location: Virginia Tech

Import variables from Matlab

Post by hyunee »

Hello,
I am trying to import some variables from Matlab to OpenSees. Anybody can tell me how I can do this?
Thank you.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Import variables from Matlab

Post by fmk »

write them to a file, and have opensees read in the file. in the file you could add text like "set a 1.0" so you would not hae to have
a special procedure to read the file. you would just have to souce it.
hyunee
Posts: 21
Joined: Thu Dec 13, 2012 12:21 am
Location: Virginia Tech

Re: Import variables from Matlab

Post by hyunee »

Thank you for your reply. I will try it.
Post Reply