How to label data of probability?
1 view (last 30 days)
Show older comments
I have set of probability named A.
A= [0.7188 0.0625 0.0625 0.0469 0.0313 0.0156 0.0156 0.0156 0.0156 0.0156]
How can I assigned the 1st vector ,S1 = 0.7188, S2= 0.0625... and so on.
Then, when I called S1 , the number will result as 0.7188
0 Comments
Accepted Answer
madhan ravi
on 18 Nov 2018
Edited: madhan ravi
on 18 Nov 2018
Don't think of doing it see https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval use cell instead:
A= {0.7188 0.0625 0.0625 0.0469 0.0313 0.0156 0.0156 0.0156 0.0156 0.0156};
celldisp(A)
0 Comments
More Answers (0)
See Also
Categories
Find more on Logical 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!