JuliaInterop / MATLAB.jl

Calling MATLAB in Julia through MATLAB Engine
MIT License
270 stars 63 forks source link

Updates to .m files do not take effect #228

Open olof3 opened 3 weeks ago

olof3 commented 3 weeks ago

Having a file like simple_addition.m

1 + 1

gives as expected

julia> mat"simple_addition"
2.0

However, modifying simple_addition.m to

1 + 2

still gives

julia> mat"simple_addition"
2.0

Restarting julia doesn't help.

After showing the msession, running the file, and then hiding the msession, mat"simple_addition" begins to work.

Perhaps I am missing something, seems like someone else should have run into this before :)

Tried on Matlab R2021b on Windows, Julia 1.9.3