Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Export result mat file to Matlab (file attached)

Export result mat file to Matlab (file attached)

Hi everyone !

I made a function to import the MAT file generated by OpenModelica to Matlab (see file attached).

The function is based on the 'omimport' function by Christian Schaad, with the following enhancements:
a. all the variables are returned in a single 'struct' variable. This is advantageous when importing several results in the same workspace and we don't want to mix the variables.
b. the user can choose to import or not the time derivative of the variables.
c. the user can set a 'black list' of variables (or components) to exclude from the import process.

I hope this helps! current/wink

Cheers!

omimportNew.m

Edited by: Ferrucci - Mar-05-21 04:07:31
Attachments:
There are 0 guests and 0 other users also viewing this topic
You are here: