If I have two functions:
function y = fcn1 %#eml
A = [ 8 1 3 5 4 9];y = pinv(A);
and
function y = fcn2 %#emlA = [ 1 4];y = pinv(A);
and build them
% build functions
emlc -c -T rtw:lib -report -d fcn1 fcn1.memlc -c -T rtw:lib -report -d fcn2 fcn2.m
I get two versions of svd.c. What is the best way to merge the resulting object files? I want to call these functions from the same code.
Best Answer