Matrix Combination String and Number Inside
Show older comments
Hello all,
anybody knows how to make a matrix by input (not manual) with combination string and number inside?
example :
Lara 70 70
Donna 85 80
i've tried make that matrix but i just got error,,
this's my code
a= input ('Number of Participant :');
for c=1:a
b(c,1)= input ('What's your Name :','s');
b(c,2)= input ('What's your first score :');
b(c,3)= input ('What's your second score :');
end
disp(b)
i've tried anything but i just got error always,,
please help me
Accepted Answer
More Answers (1)
baby
on 17 Oct 2012
0 votes
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!