User Tools

Site Tools


visual3d:documentation:third-party:matlab:matlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:third-party:matlab:matlab [2025/09/18 15:17] – [Integrating Matlab dlls] wikisysopvisual3d:documentation:third-party:matlab:matlab [2025/09/18 15:22] (current) – [Examples] wikisysop
Line 282: Line 282:
 Visual3D exports signals to a mat file as [[https://blogs.mathworks.com/loren/2006/06/21/cell-arrays-and-their-contents/|cell arrays.]] Visual3D exports signals to a mat file as [[https://blogs.mathworks.com/loren/2006/06/21/cell-arrays-and-their-contents/|cell arrays.]]
  
-For example, the following command:// +For example, the following command: 
 +<code>
   Export_Data_To_Matfile   Export_Data_To_Matfile
   /FILE_NAME=**c:demo filesMatlabtestmat.mat   /FILE_NAME=**c:demo filesMatlabtestmat.mat
Line 294: Line 294:
   ! /OUTPUT_PARAMETER_NAMES=   ! /OUTPUT_PARAMETER_NAMES=
   ;   ;
- +</code> 
-places 4 cell arrays into the matfile.//+Places 4 cell arrays into the matfile.//
  
 RANK contains the contents of the signal RANKLE_ANGLE// RANK contains the contents of the signal RANKLE_ANGLE//
Line 316: Line 316:
  
 Data can be imported to Visual3D using a syntax similar to export.// Data can be imported to Visual3D using a syntax similar to export.//
 +<code>
   Import_Data_From_Matfile   Import_Data_From_Matfile
   FILE_NAME=**c:\demo files\Matlab\testmat.mat   FILE_NAME=**c:\demo files\Matlab\testmat.mat
Line 324: Line 324:
   INPUT_NAMES=**RFT1+RFT2+RFT3+FZ2+EMG9   INPUT_NAMES=**RFT1+RFT2+RFT3+FZ2+EMG9
   ;   ;
-  +</code>
 === Format of the mat file for Visual3D === === Format of the mat file for Visual3D ===
  
-The format of the matfile is specific to Visual3D. The following example demonstrates a simple use of the mat file that reveals the particular syntax expected by Visual3D.+The format of the matfile is specific to Visual3D. The following example demonstrates a simple use of the mat file that reveals the particular syntax expected by Visual3D.// 
 +Edit average_3targets_return_target.m and add the following code://
  
 <code> <code>
-! --------------------------------------------------------------------- 
-! The example m-file is listed here. 
-! To compile the m-file 
-! Switch to dos (Command Prompt) 
-! Change to directory containing the m-file 
-! To create the executable 
-! mcc -p average_3targets_return_target 
-! 
-! edit average_3targets_return_target.m 
-! and add the following code 
-! --------------------------------------------------------------------- 
 function testmfile function testmfile
 % load the file that was written out by C-Motion Visual3D % load the file that was written out by C-Motion Visual3D
visual3d/documentation/third-party/matlab/matlab.1758208645.txt.gz · Last modified: 2025/09/18 15:17 by wikisysop