How do i use any numeric value as a symbol?
Show older comments
I want to create a program for arranging group of students according to their percentage marks.I want to assign their marks to their respective roll numbers,e.g 4580=80%,4511=67.32% etc. How can i do this??
Answers (2)
Azzi Abdelmalek
on 23 Jul 2013
Edited: Azzi Abdelmalek
on 23 Jul 2013
s='4580=80%'
If it's not what you are looking for, please be more clear
1 Comment
Sudhir Dhadge
on 23 Jul 2013
Edited: Sudhir Dhadge
on 23 Jul 2013
Jan
on 23 Jul 2013
Numbers are numbers and you cannot assign anything to them. But you can use a struct array, to store both information:
S(1).name = '4580'
S(1).result = 0.8
S(2).name = '4511'
S(2).result = 0.6732
...
Categories
Find more on Operating on Diagonal Matrices 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!