How to open .dat file
Mostra commenti meno recenti
Dear All,
I have .dat file as attached. I tried open using this script but an error.
Error using reshape
Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate
size for that dimension.
unzip xcat_wb.zip
fid = fopen('xcat_wb.dat','rb');
arr = fread(fid,'int8');
fclose(fid);
dim = [364,364,110];
arr = reshape(arr,dim)
volshow
Risposta accettata
Più risposte (1)
mohd akmal masud
il 5 Nov 2024
Spostato: Walter Roberson
il 8 Nov 2024
Categorie
Scopri di più su Convert Image Type in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!