Closed aramirezreyes closed 8 years ago
2000:100:5000
is a StepRange{Int,Int}
, which is not a type supported by MATLAB. Use collect(Alturas)
to convert it to a vector.
Damn! Thanks a lot for the support! i should've noticed... Sorry!
@simonster I just had the same issue. Of course, I stumbled upon this page, so the problem was solved quite easily, but do you think it could help users to have either a more explicit error message or (maybe too aggressive) an automatic conversion to vector of such range objects ?
I experienced something similar while saving a dict containing ascii char. Background: first saved a .mat file with a field containing the string "s". Somehow, when reading it back, it was read as ascii char 's'. Saving again on disk failed with the mentioned error.
Hi! Trying to save a variable to a .MAT file with julia 0.4.2 throws:
The variable is defined by Alturas = 2000: 100:5000
And im trying to save it as: filep = matopen(string(Ruta2,"P_4Dn",archi,".mat"),"w"); write(filep,"Alturas",Alturas); close(filep);
I believe is a bug.
I wish i could be of more help!