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).
  • See also Cancel export.

Dataflow window

  1. On the Dataflow window, right-click on an acoustic variable, select Export and choose from
    • To Matlab Format...
    • Complex To Matlab Format...
  2. In the export dialog box, specify the Export options.
  3. Click Export...

Echogram

  1. Display an Sv, TS or angular position echogram.
  2. 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...
  3. In the export dialog box, specify the Export options.
  4. 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.

  1. Display an echogram.
  2. Make a selection or select a region.
  3. 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...
  4. In the export dialog box, specify the Export options.
  5. Click Export...

Table

  1. Display a Table.
  2. On the Table menu choose from
    • Export to Matlab...
    • Export Complex to Matlab...
  3. In the export dialog box, specify the Export options.
  4. 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.

See also

About exporting data
Export file formats