Sampling in a time vector

2 ビュー (過去 30 日間)
Brian Aguilar
Brian Aguilar 2016 年 9 月 9 日
回答済み: the cyclist 2016 年 9 月 9 日
I want to generate a time vector tt corresponding to a range of values of t that will cover approxi- mately two cycles of a 440 Hz sinusoid. Also, I need to make sure that I have at least 25 samples per period of the sinusoidal wave.
I understand how to find the period but Im a little confused on getting exactly 25 samples per period. So far I have tt = -1/440: :1/440. I don't know what to put as the increments to get exactly 25 samples

回答 (1 件)

the cyclist
the cyclist 2016 年 9 月 9 日
I would use the linspace command to do this.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by