How to get specific data from Double?

I have double (i,j,n): A(1:50,1:50,1:250) in other words 2-dimensional vector (i,j) that changes n times. How can I get from this a new (1-dimensional vector B(:)) vector B(25,25,1:250) that will give me 250 times of data in point (25,25)??

답변 (1개)

Wayne King
Wayne King 2012년 3월 15일

0 개 추천

Do you just mean?
B = squeeze(A(25,25,:));

댓글 수: 1

Zach
Zach 2012년 3월 15일
Obviously YES!
Thank you very much!
P.S.
may be you can help with this problem too:
http://www.mathworks.se/matlabcentral/answers/32381-can-not-subplot-wind-rose

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

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

질문:

2012년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by