Create a cell array variable that would store for a student his or her name, university id number, and GPA. Print this information
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:8| Question number:11.8
All Answers
total answers (1)
>> studentca= {'Smith, Susan', 12345678, 3.5};
>> fprintf('Name: %s\nUID: %d\nGPA: %.2f\n', studentca{1}, ...
studentca{2}, studentca{3})
Name: Smith, Susan
UID: 12345678
GPA: 3.50
need an explanation for this answer? contact us directly to get an explanation for this answer