Modifying this code to make a cell array?
Mostra commenti meno recenti
sizegroup=input('Enter number of students: ');
for k = 1:1:sizegroup
%read in name and score
name=input('enter name: ', 's');
score = input ('enter score: ');
%disp name and score
disp('Name and score are');
disp(name)
disp(score)
names=[]
end
Hi, I need to modify this code to make it create a cell array of student data (names and scores) and then display it, and i'm not sure about how to go about doing this without it replacing the values within each loop?
Thanks in advance
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Code Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!