필터 지우기
필터 지우기

how to do this Python interpolation in MATLAB?

조회 수: 3 (최근 30일)
John Allen
John Allen 2018년 10월 31일
I need to convert this piece of Python code in MATLAB, but I can't seem to figure out how to do this.
T = 1968, F = 1025, used_freq = 22050, freqs = 1621 x 1 vector, log_scale_spec = 1968 x 1025 matrix, cent_spec was initialized with zeros = 1968 x 1621 matrix, and the "linspace(0, used_freq, F)" operation gives a 1025 x 1 vector
The interpolation seems to be a cubic (k = 3).
I just don't know how to structure all of this together as a for loop in MATLAB. I tried something like this so far:
The f represents the operation " linspace(0, used_freq, F)' " Notice in Matlab, it has to be transposed with ' .

답변 (0개)

카테고리

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