input is not supported for code generation

조회 수: 2 (최근 30일)
giovanni bonciani
giovanni bonciani 2020년 2월 17일
답변: Darshan Ramakant Bhat 2020년 2월 19일
Hello everyone, i have a problem using input function into Matlab Coder. In detail, in the original script i have:
number=input('Enter a number: ');
but MatlabCoder gives me this error: "input is not supported for code generation".
so, there is any kind of alternative to input function supported by code generation (to details see https://it.mathworks.com/help/coder/ug/functions-and-objects-supported-for-cc-code-generation.html;jsessionid=24e6cec76fe03a9d6639c278fc5a) ?
i think about to use a inputless and outputless function like this (because code generation can translate only functions):
function NUMBERS()
but i want to mantain an input type like input function (display a string with an istruction and insert a value).
Can anyone help me, please?
Thank you very much

답변 (1개)

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2020년 2월 19일
I found similar question answered before :
Hope this will be helpful for you.

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by