I have a 3d 64x64x64 data image and I would like to load it onto matlab in a form similar to this for 2d data to be viewed:
size=64 %size of data
fileID = fopen('W11_64.dat','r');
A = fscanf(fileID,'%f');
fclose(fileID);
RefI = zeros(size,size); %line x columns
for m = 1:size
for n = 1:size
RefI(n, m) = A(m+(n-1)*size);
end
end
I have attached the data I wish to be loaded
Thanks for your help

댓글 수: 2

Mahesh Taparia
Mahesh Taparia 2020년 1월 9일
Can you upload your data once?
Aidan Shek
Aidan Shek 2020년 1월 22일
Here we go

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

답변 (1개)

Selva Karna
Selva Karna 2020년 1월 9일

0 개 추천

share your input data?

카테고리

도움말 센터File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

제품

질문:

2020년 1월 6일

댓글:

2020년 1월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by