Path: Common/Interface
-------------------------------------------------------------------------- Reads data from a simulation log file. If file is not entered it will display a file selection dialog box. Also see PlotDSimFile which handles component logs. -------------------------------------------------------------------------- Form: [x, v, r, s, t, d] = LoadSimLog( file ) -------------------------------------------------------------------------- ------ Inputs ------ file (1,:) File name ------- Outputs ------- x (n,:) Data each row is a time step v {m} Names for each column. ":" replaced with "_" r {m} Indices in x for each variable. s {m} Native size for each variable t (1,n) MET of entries d (.) Data structure with Time and fields for all data using the names in v -------------------------------------------------------------------------- Sample file data: ----------------- Time,"-2 SC:rWARate","-2 SC:angularMomentum" 0.1,"[0.9999840718;2.000001976;3.000008952;3.999997113]","[1000.049761;-999.9602393;2000.079761]" --------------------------------------------------------------------------
Common: FileUtils/FindDirectory Common: General/StringToTokens Common: Graphics/Plot2D Common: Graphics/TimeLabl
Back to the Common Module page