This is example code on how to interact between OpenSees and Matlab. The routine writes tcl code, run OpenSees, and read/extract output file. This code use the official Truss example from OpenSees:
Please create the "Truss.tcl" from that website, the opensees analysis will generate "example.out" as output.
Note that all matlab .m, .tcl, and opensees.exe files need to be in the same folder.
Gifari Zulkarnaen (2022). OpenSees-Matlab Interaction of Truss Example (https://www.mathworks.com/matlabcentral/fileexchange/74949-opensees-matlab-interaction-of-truss-example), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!