input is not supported for code generation

조회 수: 23 (최근 30일)
LeoAiE
LeoAiE 2020년 5월 26일
답변: Darshan Ramakant Bhat 2020년 5월 27일
Hello everyone,
I’m wondering if the input function issue was resolved with new matlab version; is there a way to work around it.
But really the method didn’t work for me.
Here a simple script trying to convert it to c then to iphone app, but I get this message " input is not supported for code generation"
function treadmill(~)
x = input ('Enter treadmill speed: ');
Speed_Conversion = 60/x;
extracting = fix(Speed_Conversion);
minutes_to_seconds = 10*rem(Speed_Conversion ,1);
seconds = minutes_to_seconds/60;
final = seconds + extracting;
disp(final)
end
I appreciate your help in advance
Thanks

채택된 답변

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2020년 5월 27일
The below page gives link to the list of supported functions for C / C++ code generation :
Unfortunately "input" is not yet supported for code-generation.
I found a similar workflow question asked before, please check if the work-around suggested is helpful for you :

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by