I have a simscape model and a similar model in open modelica. I need to compare the results from both these models i.e. plot the results of the two models on the same plot/graph and compare the results. I would like to know how can I do this? How can I export my simscape results to open modelica and plot them on the same graph.
Is there any command that will help me read matlab files which contains the results of my simscape model and plot them in open modelica?
OpenModelica can understand results files containing time series in two formats:
Comma-separated values (CSV), so something like
Matlab MATv4 files, see the OpenModelica User's Guide for implementation details.
Open a result file in OMEdit:
File
->Open Result File(s)
and navigate to your.csv
or.mat
file.If Simscape can't output result files in the MATv4 format try CSV files. If that isn't an output option for Simscape there are plenty of tools available to convert MAT/HDF5 to CSV files, e.g. Pandas in Python.