Hi,
I have a question. Is there the possibility to export the variables from OpenSees to Matlab in order to understand in a easy way if their values are correct?
Is there some Tcl commands to do this?
Thanks in advance
Bye
From OpenSees to Matlab
Moderators: silvia, selimgunay, Moderators
From OpenSees to Matlab
Scientists study the world as it is; engineers create the world that never has been.
keep it simple
You can always output the variables using "puts" command to a text file with an *.m extension,
e.g.
set a 1;
set b 2;
set c [expr $a+$b]
set file [open matlaboutput.m a]
puts file "a=$a;"
puts file "b=$b;"
puts file "c=$c;"
close $file
then you can run the "matlaboutput" from matlab...
hope that this is what you're asking for
e.g.
set a 1;
set b 2;
set c [expr $a+$b]
set file [open matlaboutput.m a]
puts file "a=$a;"
puts file "b=$b;"
puts file "c=$c;"
close $file
then you can run the "matlaboutput" from matlab...
hope that this is what you're asking for
Zlatko Vidrih
Institute of Structural Engineering, earthquake Engineering and Construction IT
Faculty of Civil and Geodetic Engineering
University of Ljubljana, Slovenia
Institute of Structural Engineering, earthquake Engineering and Construction IT
Faculty of Civil and Geodetic Engineering
University of Ljubljana, Slovenia