how run opensees and matlab online together

2 ビュー (過去 30 日間)
rouhollah robatahani
rouhollah robatahani 2020 年 12 月 16 日
回答済み: Harsh Sharma 2024 年 9 月 22 日
Hi,for an optimization analysis I need to run an analysis in the opensees program and use the results in the MATLAB program, but this program is very heavy and slow and takes a lot of time, I wanted to know if the opensee and MATLAB programs together can be run online by Useing online matlab in this site and speed up the analysis

回答 (1 件)

Harsh Sharma
Harsh Sharma 2024 年 9 月 22 日
Hi Rouhollah,
The general way to access opensees is by writing the required commands to a file, and then using system() to run theopenseesexecutable redirecting input from the file you just created to the “opensees” executable. Here’s a code snippet to illustrate this process:
file = 'YourOpenSeesScript.tcl';
% Run the file from MATLAB
cmd = sprintf ('OpenSees.exe < "%s"', file);
system(file);
After your “opensees” program has been run, you can load the results back into MATLAB.
You can check the following MATLAB answer which is relevant to your question:

カテゴリ

Help Center および File ExchangePlatform and License についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by