hexagon logo

How to convert Easy5 output to another format?

Page 301 of the User Guide states
"​The Matrix Algebra Tool has built-in scripts that load all types of .ezrpd plot files generated from the
various Easy5 analyses, and provides functions to write the plot data to a MATLAB format, CSV Excel
files, and other formats. This is the recommended method for post-processing the analysis data."
 
This is under the heading of Plot File Format.  I did some searching through the MAT guide and used the function search for something that would do this but I am unable to find it.  What is the MAT recommended way to write the plot data out to MATLAB, Excel and other formats?
 
  • The easiest and most direct way to get the data contained in an .ezrpd file into matlab is to just convert it into a .csv file. You don’t have to use MAT to do that. You can either
     
    1) before running the analysis that generates the .ezrpd file, in the Plotting tab of the Simulation Analysis Data panel change “Export plot data as CSV?” to “Yes”
     
    or
     
    2) after running an analysis, in the Easy5 Plotter Export Menu you can select Export Plot File As … > Comma-Delimited (CSV) File
     
    or
     
    3) from an Easy5 Command Shell you can execute easy5x –B ModelName –csv, which will export ModelName.ezrpd to ModelName.csv. You will need to rename or copy the .ezrpd file to fit the expected name for the ezrpd file.
     
    With the data in CSV format the Matlab csvread command can be used to load the data into a Matlab array.
     
    Or, using MAT, you can load the data in an ezrpd file into a MAT matrix by executing the load_plot command. Go to the MAT Help menu and enter “load_plot” to see the detailed documentation for this option. For example, you can type y = load_plot(‘ModelName’,’simulation’); to load the data in the plot file ModelName.simulation.ezrpd into the matrix y. Then this MAT matrix y can be saved as a CSV file: save_delim(y,’FileName.csv’), or as a .mat file readable by Matlab: save FileName –mat to save the MAT workspace as FileName.mat. This last option for saving variables is documented in the MAT User Guide on about page 28, under the main heading “Saving and Loading Data to Your Workspace”. The .mat file will be in the Matlab v.5 format.
  • Thank you.  I got lost looking for a save_matlab function.  I guess I never realized that save does that directly.​