input is not supported for code generation
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
LeoAiE
il 26 Mag 2020
Risposto: Darshan Ramakant Bhat
il 27 Mag 2020
Hello everyone,
I’m wondering if the input function issue was resolved with new matlab version; is there a way to work around it.
I know a similar question was posted here https://www.mathworks.com/matlabcentral/answers/71539-how-to-deploy-a-matlab-app-to-ios-and-android
And here https://www.mathworks.com/matlabcentral/answers/505914-input-is-not-supported-for-code-generation
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
0 Commenti
Risposta accettata
Darshan Ramakant Bhat
il 27 Mag 2020
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!