Create a structure 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:12.8
All Answers
total answers (1)
>> studentst = struct('name', 'Smith, Susan', 'UID', ...
12345678, 'GPA', 3.5);
>> fprintf('name: %s\nUID: %d\nGPA: %.2f\n', studentst.name,...
studentst.UID, studentst.GPA)
name: Smith, Susan
UID: 12345678
GPA: 3.50
need an explanation for this answer? contact us directly to get an explanation for this answer