Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| source | 2 years ago | |
| test-data | 2 years ago | |
| CMakeLists.txt | 2 years ago | |
| README.md | 2 years ago | |
| copy_deps.py | 2 years ago | |
| test.ps1 | 2 years ago | |
When the version of MAT file update to v7.3, and the MathWorks closed source the file format, there are no libraries that can parse files in this format anymore, so you have to operate the MAT file via m script or the C/C++ APIs.
Configure the user's MATLAB installation environment.
# For bash
echo "export MATLAB_ROOT=/usr/local/MATLAB/R2018b" >> ~/.bashrc
source ~/.bashrc
# For zsh
echo "export MATLAB_ROOT=/usr/local/MATLAB/R2018b" >> ~/.zshrc
source ~/.zshrc
Right-click on Computer icon.
Select Properties in the context menu, then Advanced system settings , on the Advanced tab, clickEnvironment Variables.
Click New to create a new environment variable named MATLAB_ROOT, the value is the installation root directory of your MATLAB.
Restart your terminal, then test the setting.
echo %MATLAB_ROOT%
NOTE: On Windows, here we assume that you have installed the MinGW-w64 with correct version and append the required environment variables correctly also.
Here is what we used: MinGW-w64, CMake
The append the environment variables:
MW_MINGW64_LOCpoints to the root directory of your MinGW-w64 after extraction.Append
%MW_MINGW64_LOC%\bininto thePATHAppend
%MATLAB_ROOT%\bininto thePATHalso, so that you can runmexdirectly without change directory to MATLAB's installation directory.Restart your terminal.
In the terminal, run the following commands to setup the compilers for MATLAB:
mex -setup C mex -setup C++
# Just run the shell script in the root directory of this project
admake build
cp Debug/dgns test-data
# Just run the shell script in the root directory of this project
admake build
cp Debug/dgns.exe test-data
copy_deps.py
cd test-data
dgns.exe EgoSignal.mat
Toys
C++ JavaScript Unity3D Asset C Python other
Apache-2.0