Files
armadillo-code/mex_interface/run_demo.m
T
2020-10-20 18:40:30 +10:00

12 lines
204 B
Matlab

% Compile the demo as a mex file
mex -larmadillo -lgfortran armaMex_demo.cpp
% Generate two random matrices
X = rand(4,5);
Y = rand(4,5);
% Run the demo using X and Y
Z = armaMex_demo(X,Y)