Exporting to MATLAB
Echoview supports the export of data to MATLAB format files for
- Single beam power, Sv, TS, unspecified dB, angular position; complex power, Sv and TS; pulse compressed complex power, Sv and TS
- Multibeam Sv, magnitudes and unspecified dB
Notes:
- The longitude and latitude values that are exported are the longitude and latitude of the GPS antenna at the time the ping was transmitted, see What is affected by transducer geometry for more information.
- From Echoview 13 onwards, exports from complex variables output real and imaginary values. The complex data export to MATLAB export is not available to regions or selections.
Prior to Echoview 13, exports from complex variables output single dB values per sample as displayed in echograms. See also: Complex data exports (where every sample is represented by a real and an imaginary number). - Corrupted files may be created if the resulting MATLAB file is 2 GB or greater. If this occurs, please use fewer pings per export.
- See also Cancel export.
Dataflow window
- On the Dataflow window, right-click on an acoustic variable, select Export and choose from
- To Matlab Format...
- Complex To Matlab Format...
- In the export dialog box, specify the Export options.
- Click Export...
Echogram
- Display an Sv, TS or angular position echogram.
- On the Echogram menu, point to Export and choose from
- Sv Values to Matlab...
- TS Values to Matlab...
- Complex Sv Values to Matlab...
- Complex TS Values to Matlab...
- Angular Positions to Matlab...
- In the export dialog box, specify the Export options.
- Click Export...
Selection/region on an echogram
Export from a selection or region on an echogram is supported for single beam data. This is not available for complex data.
- Display an echogram.
- Make a selection or select a region.
- On the Shortcut menu (right-click), select Export Selection or Export region and choose from
- Sv Values to Matlab...
- TS Values to Matlab...
- Angular Positions to Matlab...
- In the export dialog box, specify the Export options.
- Click Export...
Table
- Display a Table.
- On the Table menu choose from
- Export to Matlab...
- Export Complex to Matlab...
- In the export dialog box, specify the Export options.
- Click Export...
MATLAB file format
Echoview provides data similar to the equivalent data export in *.csv format.
Echoview exports the data for a ping as a row in MATLAB format. Prior to Echoview 7, each ping data was a column.
MATLAB scripts that are written for ping data in columns will require the data in Echoview 7 MATLAB export files to be transposed. The following Octave code snippet to transposes Echoview export data:
octave:164> Var=[]; for x=1:length(PingNames), Var=[Var,eval(PingNames{x})]; clear(PingNames{x}); end octave:165> Data_values=transpose([Var.Data_values])
Note: Under MATLAB/Octave PingNames(x) must be written PingNames{x} since PingNames is cells.
Complex data
Echoview handles complex data as {r, r, r... i, i, i...} and then uses Matlab table writing code to create a single Matlab complex array structure.