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/12 18:32] – wikisysop | visual3d:documentation:third-party:matlab:matlab [2025/09/18 15:22] (current) – [Examples] wikisysop | ||
---|---|---|---|
Line 44: | Line 44: | ||
**The text file must have a .txt extension and the same name as the .dll it describes. An example would be:** | **The text file must have a .txt extension and the same name as the .dll it describes. An example would be:** | ||
- | |||
- | $ ls MathLab-Plugins # (or ' | ||
swindowlib.dll | swindowlib.dll | ||
swindowlib.txt | swindowlib.txt | ||
\\ | \\ | ||
- | |||
- | $ cat swindowlib.txt | ||
- | swindow | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | ; | ||
**This tells Visual3D that swindowlib.dll has an entry point named swindo that takes 4 parameters: | **This tells Visual3D that swindowlib.dll has an entry point named swindo that takes 4 parameters: | ||
Line 292: | 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 304: | Line 294: | ||
! / | ! / | ||
; | ; | ||
- | + | </ | |
- | places | + | Places |
RANK contains the contents of the signal RANKLE_ANGLE// | RANK contains the contents of the signal RANKLE_ANGLE// | ||
Line 326: | 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 334: | 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.1757701928.txt.gz · Last modified: 2025/09/12 18:32 by wikisysop