User Tools

Site Tools


visual3d:documentation:pipeline:file_commands:export_data_to_matlab

Export_Data_To_Matlab

THIS COMMAND DOES NOT WORK IN ANY VERSION OF MATLAB NEWER THAN Matlab R13. Use the Export_Data_To_Matfile command instead

Visual3D will use DCOM to push signal directly in the Matlab Workspace without having to save the m-file. This command is different from Put_To_Matlabe because it allows the data to be exported from all ACTIVE_FILES. This is possible because it uses a Matlab struct_array to store the data.

Export_Data_To_Matlab

/MATLAB_ITEM_NAME= the name of the struct_array in Matlab
/SIGNAL_TYPES= the Visual3D Types
/SIGNAL_NAMES= the Visual3D Names
/SIGNAL_FOLDER= the Visual3D Folders
/OUTPUT_NAMES= the names of the signal within the struct array
/PARAMETER_GROUPS the C3D Parameter Group
/PARAMETER_NAMES= the C3D Parameter Name
/OUTPUT_PARAMETER_NAMES= the Matlab name for the C3D Parameter
/USE_NAN_FOR_DATANOTFOUND=DATANOTFOUND is the Visual3D name for a missing signal.

For example, export 3 TARGETS (LFT1, LFT2, LFT3) from Visual3D to Matlab.

Invoke the Pipeline Edit Dialog


Add the name of the Matlab struct array and the first TARGET. Select the Add Data button


Add the remaining 2 signals


The text version of the pipeline command should look like this:

Export_Data_To_Matlab

/MATLAB_ITEM_NAME= TEST
/SIGNAL_TYPES= TARGET+TARGET+TARGET
/SIGNAL_NAMES= LFT1+LFT2+LFT3
/SIGNAL_FOLDER= ORIGINAL+ORIGINAL+ORIGINAL
/OUTPUT_NAMES= O_LFT1+O_LFT2+O_LFT3
/PARAMETER_GROUPS
/PARAMETER_NAMES=
/OUTPUT_PARAMETER_NAMES=
/USE_NAN_FOR_DATA_NOT_FOUND=TRUE

Execute the command with 4 active files in the Visual3D Workspace.

Matlab should contain the following struct_array

» TEST

TEST =

ANALOG_VIDEO_FRAME_RATIO: {4×1 cell} FRAME_RATE: {4×1 cell} FILE_NAME: {4×1 cell}   O_LFT1: {4×1 cell}   O_LFT2: {4×1 cell}   O_LFT3: {4×1 cell}

» TEST.O_LFT1

ans =

[230×5 double] [231×5 double] [220×5 double] [211×5 double]

visual3d/documentation/pipeline/file_commands/export_data_to_matlab.txt · Last modified: 2025/09/03 20:22 by wikisysop