How to Generate a clock pulse in Matlab ?
11 ビュー (過去 30 日間)
古いコメントを表示
How can I generate a clock pulse with the function of time so that it sample my input signal at certain sampling rate let say at 1Khz. I mean on every rising egde of clock it must sample the input signal. could anyone can help how to write code for that clock ? The clock must be with respect to time. Thanks
2 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2018 年 10 月 5 日
See there is a period(s), its a time period, f=1/time period, to calculate the frequency. So Adjust the T in such a way that f equal 1 KHz, so t should be equal to 0.001 sec
5 件のコメント
KALYAN ACHARJYA
2018 年 10 月 5 日
@Sarfaraz your question seems very easy, I am guessing, look at Pulse type options, also for testing you can reduce the frequency so that more visibility in a cycle.
If there is no rise time and fall time delay, it should look like a square, otherwise its triangular depends on rising and fall time value
Pulse Width (PW) is the elapsed time between the rising and falling edges of a single pulse. To make this measurement repeatable and accurate, we use the 50% power level as the reference points.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192762/image.gif)
Hope it helps you
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!