sine wave measure differ
古いコメントを表示

function y = generate_sine()
persistent t
Ts = 0.0001;
if isempty(t)
t = 0;
end
y = sin(377 * t);
t = t + Ts;
This is sine wave generator of 60 Hz.
when the scope set up is below, that isnt 60 Hz. 


but same code, that is same function block and measure with sine wave block of 60 Hz , then measure 60 Hz
why?


採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


