Write a script will prompt the user for a keyword in MATLAB, error-
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:5| Question number:22.5
All Answers
total answers (1)
Ch5Ex22.m
keyw = input('Please enter a MATLAB keyword: ', 's');
while ~iskeyword(keyw)
keyw = input('Seriously, enter a MATLAB keyword: ', 's');
end
fprintf('Indeed, %s is a keyword!\n', keyw)
need an explanation for this answer? contact us directly to get an explanation for this answer