Hi all,
Does anyone here have experience in running OpenSees through Matlab in a mac computer ??
I need to run so many simulations and thus I decided to make a small routine in Matlab to create the required .tcl files and call OpenSees through Matlab to run these .tcl files...I have installed OpenSees in mac and I have set the path for OpenSees also ...
If I have a file 'Test.tcl', all I am trying to do is use the command ' !OpenSees Test.tcl' through my Matlab code ... I have the OpenSees binary application in the same folder as the Matlab code... But the code keeps showing an error '/bin/bash: OpenSees: command not found' .... So the Matlab code is not able to initiate the OpenSees application ....
Any suggestions ??
Thanks,
Jeena
Run OpenSees through Matlab in Mac Unix Systems
Moderators: silvia, selimgunay, Moderators
Re: Run OpenSees through Matlab in Mac Unix Systems
I would try setting a path to the folder in Matlab.
If you click "File" on the main Matlab toolbar and then select "Set Path", you should be prompted with a window that has all of the Matlab search paths. Select "Add Folder...", and navigate to the folder that has your model. Once you add the folder, save your changes in the Set Path window.
Hope this helps.
-Nick
If you click "File" on the main Matlab toolbar and then select "Set Path", you should be prompted with a window that has all of the Matlab search paths. Select "Add Folder...", and navigate to the folder that has your model. Once you add the folder, save your changes in the Set Path window.
Hope this helps.
-Nick
Re: Run OpenSees through Matlab in Mac Unix Systems
Hi Jeena,
The way I went about it was to copy the OpenSees executable to /usr/bin and that seemed to solve the problem. See below for the procedure:
sudo cp OpenSees /usr/bin (this is assuming you're in the same directory where OpenSees executable is located)
Hope this helps!
-Ace
The way I went about it was to copy the OpenSees executable to /usr/bin and that seemed to solve the problem. See below for the procedure:
sudo cp OpenSees /usr/bin (this is assuming you're in the same directory where OpenSees executable is located)
Hope this helps!
-Ace
Re: Run OpenSees through Matlab in Mac Unix Systems
Thanks for all the guidance ....