I have code in matlab whose results I would like to use in python code (as a matrix or as a .dat file). Could anyone tell me how this could be done?
See Question&Answers more detail:osI have code in matlab whose results I would like to use in python code (as a matrix or as a .dat file). Could anyone tell me how this could be done?
See Question&Answers more detail:osNumPy and SciPy can read and write MATLAB .mat files directly using scipy.io.loadmat
and scipy.io.savemat
.