Changing frequency of given data set

43 ビュー (過去 30 日間)
md rashid
md rashid 2020 年 7 月 11 日
コメント済み: Chaitanya Mallela 2020 年 7 月 17 日
I have data set (voltage vs time) of a signal with frequency 450Hz and number of sample is 10000. How can I change frequency of a that data set using Matlab and also add phase shift with that signal?

回答 (1 件)

Chaitanya Mallela
Chaitanya Mallela 2020 年 7 月 16 日
Consider voltage vector x
Let the frequency shift be delta_f and phase shift be delta_p
N = 10000 % number of samples
To change the frequency of the data set, multiply complex exponential with x
y = exp(i*2*pi*[1:N]*delta_f*1/N).*x
Observe the fft plot with new frequency
plot(abs(fft(y)))
New frequency f_new = 450 + delta_f;
To add phase use circshift function on abs(y) shifted with delta_p
  2 件のコメント
md rashid
md rashid 2020 年 7 月 16 日
Hi thanks for answering the question. But when I tried to run the program it shows error.
It says "Out of memory. Type "help memory" for your options". Do you know how to solve this issue?
Chaitanya Mallela
Chaitanya Mallela 2020 年 7 月 17 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by