How can I read data from 512-by-256-by-128 matrix.

조회 수: 3 (최근 30일)
Aniya
Aniya 2016년 10월 19일
댓글: Aniya 2016년 10월 25일
forloop= 1:512
forloop= 1:256
forloop= 1:128
//do something
end
It causes matalab busy.Is there a way to read the data from matrix(i need data in a particular format like data(1,1,1), data(1,2,1), data(1,3,1), data(1,1,2)...and so on . What will i do? Is there any other way ?

답변 (1개)

KSSV
KSSV 2016년 10월 19일
If the data is in matrix form, you can straight away take your required information from data using indexing. You can access data(1,1,1),data(1,2,1),data(1,3,1)....data(1,n,1) at on stretch calling
data(1,:,1)
  댓글 수: 8
Walter Roberson
Walter Roberson 2016년 10월 19일
If you have a matrix you want to write out in a different order, you can almost always do it by using fprintf() or fwrite() in combination with permute(), without needing for loops.
Aniya
Aniya 2016년 10월 25일
Thank you

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by