why sin(x) function doesnt no return periodic sin waves?

9 ビュー (過去 30 日間)
Corrado Giuliani
Corrado Giuliani 2014 年 11 月 17 日
編集済み: Adam 2014 年 11 月 17 日
Well, it does, but only in certain circumstances. I've got to add a line-power- like signal to a simulated ECG in order to show that interference. I've defined, as is requested by standard calculations, a time vector as 1:length(signal)/ sampling frequency and then i computed the line signal as A*sin(2*pi*w*t). Obviously i previously define A e w, and everything is good at w=50, which is standard frequency in most countries for line interferences, but, as soon as i switch to different frequencies, such as 50.5, the sin wave is completely wrong since it has some sort of modulation in the amplitude which cannote be true for a sin wave. Help?
  1 件のコメント
Adam
Adam 2014 年 11 月 17 日
編集済み: Adam 2014 年 11 月 17 日
Posting some plots or code might help as I don't really understand what you mean. A*sin(...) should always return a true sine wave of some frequency or other and with some magnitude or other, subject to discrete sampling constraints, of course.

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by