Write a script that will, in a loop, prompt the user for four course numbers. Each will be a string of length 5 of the form ‘CS101’. These strings are to be stored in a character matrix
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:7| Question number:3.7
All Answers
total answers (1)
Ch7Ex3.m
% Creates a character matrix with four course numbers
courses = [];
for i = 1:4
courses = char(courses, ...
input('Enter a course number: ','s'));
end
need an explanation for this answer? contact us directly to get an explanation for this answer