emlc generates two different c-files for the same supporting function when building two functions, how do you merge them?
Mostrar comentarios más antiguos
If I have two functions:
function y = fcn1 %#eml
A = [
8 1
3 5
4 9
];
y = pinv(A);
and
function y = fcn2 %#eml
A = [
1
4
];
y = pinv(A);
and build them
% build functions
emlc -c -T rtw:lib -report -d fcn1 fcn1.m
emlc -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.
Respuesta aceptada
Más respuestas (1)
Todd
el 19 de Ag. de 2011
0 votos
Categorías
Más información sobre MATLAB Compiler SDK en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!