How to extract a value from a Row or Column vector?
조회 수: 49 (최근 30일)
이전 댓글 표시
Im trying to take the 5th value of a randomly generated row or column vector. How would I write the code for that?
댓글 수: 2
채택된 답변
Fangjun Jiang
2020년 6월 23일
Is this what you are looking for ?
MyVector=rand(100,1);
MyData=MyVector(5);
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!