A script iotrace has been written. Here’s what the desired output looks like:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:13.3
All Answers
total answers (1)
iotrace.m
mynum = input('Please enter a number:\n ');
mychar = input('Please enter a character: ', 's');
fprintf('Your number is %.2f\n', mynum)
fprintf('Your char is %6c!\n', mychar)
need an explanation for this answer? contact us directly to get an explanation for this answer