help with save function

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

help with save function

Rik-4
Could someone run these tests in a newish version of Matlab and return the
files?

-- Code --
x = ones (2,2,2);
save -ascii tmp1.txt x
save -mat tmp2.mat x
-- End Code --

The first save may produce an error.  That's okay, I just need to know how
they are handling ND-arrays.  For the second one, I'm trying to figure out
what the default version is if '-mat' is used alone.  It may be the latest,
i.e., '-v7.3' or it may be something else.

--Rik

Reply | Threaded
Open this post in threaded view
|

Re: help with save function

alexander-wilms
Hi,

I ran this in 2016b:

Warning: Attempt to write an unsupported
data type to an ASCII file.
     Variable 'x' not written to file.

Alex




tmp1.txt Download Attachment
tmp2.mat (242 bytes) Download Attachment