convert this m file into c code using the emlc function?

조회 수: 1 (최근 30일)
Emmanuel Luevano
Emmanuel Luevano 2012년 11월 5일
hi, I trying to covert and .m file into code C using the emlc function, but when try to get code the code, I got the next message error
function varargout = tsp_ga(xy,dmat,popSize,numIter,showProg,showResult)
I'd like to convert the next .m file from this webpage.
the message error is:
the function failed to compile, if you intended to compile the file %#eml directive in 'C/documents.............MATLAB/distmat.m' however if you wish to call out to matlab use eml.extrinsic ('distmat') before calling the function.
but to be honest, I have no idea what means that!!
is it possible do that? what I need to read to understand correctly, or what I need to check first?
thanks fellows matlab!

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 11월 6일
Not all MATLAB functions are supported for code-generation, please see MATLAB Language Subset for Code Generation. Please see the answer to this question about when to use coder.extrinsic (eml.extrinsic in older versions of MATLAB).

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by