Write a script that will prompt the user for a character, and will print it twice; once left-justified in a field width of 5, and again rightjustified in a field width of 3
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:11.3
All Answers
total answers (1)
Ch3Ex11.m
mych = input('Enter a character: ', 's');
fprintf('Here it is: %-5c and again: %3c\n',mych,mych)
need an explanation for this answer? contact us directly to get an explanation for this answer