JuliaIO / MAT.jl

Julia module for reading MATLAB files
MIT License
278 stars 71 forks source link

write vs. reshape on Julia 0.5.0_ #58

Closed PaulSoderlind closed 4 years ago

PaulSoderlind commented 8 years ago

Hi,

on 0.5.0-dev+4426 (Win64), writing a reshaped array does not work. See example below. Thanks for having a look at it. /Paul S

using MAT C1 = reshape(1:40,5,8) + 0 C2 = reshape(1:40,5,8)

fh = matopen("MatFile1.mat","w") #works write(fh,"C1",C1) close(fh)

fh = matopen("MatFile2.mat","w") #crashes write(fh,"C2",C2) close(fh)

timholy commented 8 years ago

@PaulSoderlind, thanks for the bug report. It's also fair to say that julia-0.5 is still in "use it as long as you're comfortable fixing package bugs yourself" mode---if that's not the case, consider using julia-0.4.

Or, a pull request to MAT.jl fixing this would be greatly appreciated :wink:.

PaulSoderlind commented 8 years ago

Thanks, I am indeed using 0.4.5 on a regular basis. Very nice language, by the way.

More recently, I have tried out some of my code on 0.5, with two aims: preparing for the inevitable (...), but also contributing to the language in the best way I can (submitting bug reports). Not a developer, just a user. /Paul S

musm commented 4 years ago

stale