Converting .dat to .mat?
Show older comments
I have cube.dat file with dimensions 59X44X76. i am trying to convert it into .mat file with same dimensions. I tried following code, once i run the code it never stops
Option1:
data=textread('cube.dat'); save data.mat;
Option 2
data=textread('cube.dat'); save data.mat data;
Those both codes are running forever. Is there somehting am i missing (like format or anything)?
5 Comments
Image Analyst
on 17 May 2013
Which part is hanging: the textread(), or the save()?
Rhai
on 18 May 2013
Rhai
on 18 May 2013
Image Analyst
on 18 May 2013
Where did you upload cube.dat? http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
Walter Roberson
on 18 May 2013
Your code is not writing anything to cube.dat .
Answers (0)
Categories
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!