I keep getting the error "Error using input The first argument to INPUT must be a character vector." What does this mean? I've tried searching for it, yet cannot figure it out.
Show older comments
clc
clear
hello = input("Please enter a number");
switch hello
case 0
disp("You have entered 0");
case 2
disp("Your number is even and prime.");
case (3, 5, 7)
disp("Your number is prime");
otherwise
disp("Invalid number");
end
Accepted Answer
More Answers (0)
Categories
Find more on Entering Commands 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!