visual3d:documentation:third-party:matlab:matlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:third-party:matlab:matlab [2025/09/18 15:17] – [Integrating Matlab dlls] wikisysop | visual3d: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:// | Visual3D exports signals to a mat file as [[https:// | ||
- | For example, the following command:// | + | For example, the following command: |
+ | < | ||
Export_Data_To_Matfile | Export_Data_To_Matfile | ||
/ | / | ||
Line 294: | Line 294: | ||
! / | ! / | ||
; | ; | ||
- | + | </ | |
- | places | + | Places |
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.// | ||
+ | < | ||
Import_Data_From_Matfile | Import_Data_From_Matfile | ||
FILE_NAME=**c: | FILE_NAME=**c: | ||
Line 324: | Line 324: | ||
INPUT_NAMES=**RFT1+RFT2+RFT3+FZ2+EMG9 | INPUT_NAMES=**RFT1+RFT2+RFT3+FZ2+EMG9 | ||
; | ; | ||
- | | + | </ |
=== 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:// | ||
< | < | ||
- | ! --------------------------------------------------------------------- | ||
- | ! 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