Unrecognized function or variable 'guess_my_number'.
Ältere Kommentare anzeigen
How I can solve the function?
I'm doing the course now and in the lesson number 5 we have a simple exercise with the function called 'guess_my_number', but when I'm trying to use it, Matlab says the next:''Unrecognized function or variable'' or ''Not enough input arguments''. I'm using the free trial of Matlab R2020a.
function guess_my_number(x)
if x == 2
fprintf('Congrats! You guessed my number!\n');
end
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu App Building finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!