How to load 3d.dat file

5 Ansichten (letzte 30 Tage)
Aidan Shek
Aidan Shek am 6 Jan. 2020
Kommentiert: Aidan Shek am 22 Jan. 2020
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 Kommentare
Mahesh Taparia
Mahesh Taparia am 9 Jan. 2020
Can you upload your data once?
Aidan Shek
Aidan Shek am 22 Jan. 2020
Here we go

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Selva Karna
Selva Karna am 9 Jan. 2020
share your input data?

Kategorien

Mehr zu Low-Level File I/O finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by