필터 지우기
필터 지우기

How to access array within array?

조회 수: 4 (최근 30일)
Nagarajan sivathanu
Nagarajan sivathanu 2012년 2월 6일
Hi, I stored 3 1D arrays within an array.
Q={[11121 5185 8014 11378 4888 4210];[4115 4728 5386 12746 5301 5738];[2442 1188 1212 2648 1862 1948]};
Here I donot know how to access a particular value say 5185.
Waiting for ur positive replies.

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 2월 6일
out = Q{1}(2)
for your case from eg:
Qdbl = cat(1,Q{:})
out = Qdbl(1,2)
  댓글 수: 1
Nagarajan sivathanu
Nagarajan sivathanu 2012년 2월 6일
thanks for your timely response.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by