Converting .dat to .mat?

32 views (last 30 days)
Rhai
Rhai on 17 May 2013
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
Walter Roberson
Walter Roberson on 18 May 2013
Your code is not writing anything to cube.dat .

Sign in to comment.

Answers (0)

Categories

Find more on Data Type Conversion 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!