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

Any modelica syntax to export _res.mat to readable text file?

Any modelica syntax to export _res.mat to readable text file?

Is there any built-in modelica syntax to export _res.mat to readable text file? If yes, how.  If no, is there any experience of reading (viewing) without going through Matlab?

Re: Any modelica syntax to export _res.mat to readable text file?

There is not, but you could just choose outputFormat="csv" when simulating.

Re: Any modelica syntax to export _res.mat to readable text file?

Hi,

simulate(Model, outputFormat="csv") for comma separated value.
simulate(Model, outputFormat="plt") for pt plot text format.

Cheers,
Adrian Pop/

Re: Any modelica syntax to export _res.mat to readable text file?

Hi adrpo, Thats excellent, thanks a lot!

There are 0 guests and 0 other users also viewing this topic
You are here: