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

How to plot array?

How to plot array?

I have a result array in .txt or .csv format that was generated from external exe application. I would like to read the result from it and plot it. Is there any simple way to do it?

I have been looked for the possible script to do it, but unfortunately i didn't succeed.
i try readFile, but the output is String. Can i got the array like CSVData[:,:] directly?

Further, i wish to plot several variables from different resutl files (.mat, .txt, .csv) into one plot window. I think if the variable name is known, then we can just use plot for .mat and .csv file. The problem is when there is no variable name but just an array, how to do something like plotArray(x=CSVdata[:,1], y=CSVdata[:,2]) ?

Thanks.

Edited by: RuiGAO - Sep-17-15 07:49:28
There are 0 guests and 0 other users also viewing this topic