Convert Python code to matlab

조회 수: 5 (최근 30일)
Mehdi Jaiem
Mehdi Jaiem 2021년 7월 8일
편집: Mehdi Jaiem 2021년 7월 8일
Hello
Domain: Signal Processing
I simply want to convert a short python code into a MATLAB code. I am not that used to matlab
I have two data files. One data file from an ECG and the other one from a Heartbeat Sensor. I already wrote a python code for doing all the steps, but only for the Heartbeat sensor(:
1) importing the data
2) Filtering the data using a Low and High pass (No band pass)
3) Doing the FFT (sampling frequency 100 Hz for HB Sensor and 125Hz for ECG)
4) Doing the Windowing
5) extracting the maximum frequency
one should habe a good basic knowledge in Python and Signal processing, this should be a piece of cake. Nothing difficult at all, but I simply need the equivalent code in Matlab
The Matlab code should do the exact things as the python code
  댓글 수: 2
Yongjian Feng
Yongjian Feng 2021년 7월 8일
Why not call python from matlab? matlab won't be able to import those python packages like numpy.
Mehdi Jaiem
Mehdi Jaiem 2021년 7월 8일
How can I do that?
Yes I know I simply want to know if there is a way to rewrite the code or if someone can do it. My matlab knowledge is not that big..

댓글을 달려면 로그인하십시오.

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 7월 8일
One possible approach is to call python from matlab. Please refer this this.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by