How to label data of probability?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
madhan ravi
2018년 11월 18일
편집: madhan ravi
2018년 11월 18일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!