Matlab and OpenSees using NeesHub
Moderators: silvia, selimgunay, Moderators
Matlab and OpenSees using NeesHub
Dear all,
is there the possibility to run a matlab file that calls a tcl file using the OpenSees Lab tool in NEES hub?
Thanks for the interest,
Andrea
is there the possibility to run a matlab file that calls a tcl file using the OpenSees Lab tool in NEES hub?
Thanks for the interest,
Andrea
Scientists study the world as it is; engineers create the world that never has been.
Re: Matlab and OpenSees using NeesHub
no as they had too many people using it and only a few licences. though you could ask. if stuck, try using octave (a free matlab like program that uses exact same syntax so basic .m files work w.o need for any modifications) instead.
Re: Matlab and OpenSees using NeesHub
Thanks Dr. McKenna for the reply, I'll look for octave.
However, is there some special scripts to run a m file using OpenSees interpreter? For example, in a m file I can run a tcl file using:
!OpenSees Main.tcl
Is there the opposite instruction?
Thanks,
Andrea
However, is there some special scripts to run a m file using OpenSees interpreter? For example, in a m file I can run a tcl file using:
!OpenSees Main.tcl
Is there the opposite instruction?
Thanks,
Andrea
Scientists study the world as it is; engineers create the world that never has been.
Re: Matlab and OpenSees using NeesHub
the commmand you want is exec, have a look at the example here:
http://opensees.berkeley.edu/wiki/index ... om_a_Scipt
http://opensees.berkeley.edu/wiki/index ... om_a_Scipt
Re: Matlab and OpenSees using NeesHub
Many thanks Dr. McKenna
Scientists study the world as it is; engineers create the world that never has been.
Re: Matlab and OpenSees using NeesHub
Hi,
Could you tell me please why when we use "!OpenSees Model.tcl", MATLAB calls that file? what does "!" do in MATLAB? Can we use this for other files written in other languages (such as Model.cpp)?!
Thanks a lot
Could you tell me please why when we use "!OpenSees Model.tcl", MATLAB calls that file? what does "!" do in MATLAB? Can we use this for other files written in other languages (such as Model.cpp)?!
Thanks a lot
Re: Matlab and OpenSees using NeesHub
you can call any program you want from matlab .. this is not an OpenSeees question ..
http://www.mathworks.com/help/matlab/ma ... l#f0-38522
http://www.mathworks.com/help/matlab/ma ... l#f0-38522
Re: Matlab and OpenSees using NeesHub
Hi, I tested the interpreter and a command like:
exec matlab -nosplash -r "FileName" works.
Can I make the same thing with Octave?
exec octave -nosplash -r "FileName"
Thanks,
Andrea
exec matlab -nosplash -r "FileName" works.
Can I make the same thing with Octave?
exec octave -nosplash -r "FileName"
Thanks,
Andrea
Scientists study the world as it is; engineers create the world that never has been.
Re: Matlab (Octave) and OpenSees using NeesHub
I found that exec octave -r "FileName.m" does not work. Is there an equivalent command for Octave?
Thanks in advance
Thanks in advance
Scientists study the world as it is; engineers create the world that never has been.
Re: Matlab and OpenSees using NeesHub
the following works for me on NEEShub
exec /usr/bin/octave FileName.m --silent
exec /usr/bin/octave FileName.m --silent
Re: Matlab and OpenSees using NeesHub
Many thanks.
Andrea
Andrea
Scientists study the world as it is; engineers create the world that never has been.