This repo is a tutorial comparing Matlab and numpy (a python library) in signal analysis. Data and Matlab code obtained from the lecture of Dr Chia-Feng Lu. The corresponding python code is provided to help readers to learn how to use free numpy, scipy and scikit-learn library in python to conduct signal analysis tasks.
You can click to open the notebook of the python version in Colab and exclude the code there directly.
02_Signal_preprocessing_resample_and_segment
Resample_and_segment_matlab.ipynb
Resample_and_segment_python.ipynb
03_Signal_normalisation_and_event_detection
Normalization_and_event_detection_matlab.ipynb
Normalization_and_event_detection_python.ipynb
ECG_data_analysis_FFT_and_welch_method_matlab.ipynb
ECG_data_analysis_FFT_and_welch_method_python.pynbi
FIR_and_IIR_filter_matlab.ipynb
FIR_and_IIR_filter_python.ipynb
FIR_and_IIR_filter_python.ipynb
FIR_and_IIR_filter_python.ipynb
The matlab software and Python need to be installed.
matlab currently only supports python 3.8 and below
pip install matlab_kernal
- cd to the Matlab installation directory (C:\Program Files\MATLAB for Windows)
- cd to MATLAB\(current version directory)\extern\engines\python
- execute the
python setup.py install
command
pip install notebook
jupyter notebook
If you open jupyter notebook in your browser and select malab in the kernel, you can use matlab in jupyter notebook just like python.
Reference:
begin_matlab/00. Introduction.ipynb at master · APMonitor/begin_matlab · GitHub