Unrecognized function or variable 'guess_my_number'.
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on App Building in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!