Extract values from a double list
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi,
I am trying to learn Matlab and I have two questions.
1)How can I extract from the below double the first element (8)?
myList=[8;6;9;0;6;5;4;5;6;7];
2)Also how can I replace this:
1×4 cell array
{'A'} {'B4'} {'G6'} {'D5'}
to this
A -> B4 -> G6 -> D5
Thank you in advance.
댓글 수: 1
KALYAN ACHARJYA
2022년 10월 30일
myList=[8;6;9;0;6;5;4;5;6;7];
myList(1) % Index posotion
The second question I don't understand, is it a single cell or cells within cell? If you are a beginner, go through MATLAB Onramp
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Cell Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!