You link to the solution, it has a small issue. It is this:
python_datetime = datetime.fromordinal(int(matlab_datenum)) + timedelta(days=matlab_datenum%1) - timedelta(days = 366)
a longer explanation can be found here
More Related Contents:
- Differences between return function in python and Matlab
- Need a python module for numerical and scientific computing other than NumPy and SciPy
- How I can convert this matlab code to python? [closed]
- Read .mat files in Python
- Call Python function from MATLAB
- find length of sequences of identical values in a numpy array (run length encoding)
- A tool to convert MATLAB code to Python [closed]
- Calling MATLAB functions from python
- Representing and solving a maze given an image
- Sampling uniformly distributed random points inside a spherical volume
- Python equivalent of MATLAB’s “ismember” function
- What is the equivalent of MATLAB’s repmat in NumPy
- MATLAB-style find() function in Python
- reading v 7.3 mat file in python
- “Converting” Numpy arrays to Matlab and vice versa
- Numpy loading csv TOO slow compared to Matlab
- Error opening file in H5PY (File signature not found)
- Python equivalent to ‘hold on’ in Matlab
- Why does numpy std() give a different result to matlab std()?
- How can I efficiently process a numpy array in blocks similar to Matlab’s blkproc (blockproc) function
- How to read a v7.3 mat file via h5py?
- read matlab v7.3 file into python list of numpy arrays via h5py
- Access .mat file containing matlab classes in python
- Is MATLAB faster than Python?
- Procrustes Analysis with NumPy?
- 2D Convolution in Python similar to Matlab’s conv2
- Numpy equivalent of MATLAB’s cell array
- Improve performance of converting numpy array to MATLAB double
- Comparing Matlab and Numpy code that uses random number generation
- Why does numpy.histogram (Python) leave off one element as compared to hist in Matlab?