12 lines
204 B
Matlab
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)
|
|
|