plot a stepped frequency singal
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I want to plot a stepped frequency singal (like the picture)
(Time during 0 to 1 sec)
5 件のコメント
Sam Chak
2023 年 7 月 3 日
There are many missing info. As a person from this research field, you know the formula of the frequency, yet you don't know what R and c are. There must be a reference book, textbooks, or journal papers that show the frequency formula. So, I'm unsure how it will work out for you. For example, even if I provide a math function by guessing, you are unable to feed the values of R and c into the given math function.
Would it be more effective if you just search the math function from the literature?
Thus, I'm wondering, you accidentally produced such periodic pattern. Now, you want to identify its math function. Are you searching for a general math function that produces such periodic pattern (not the exact signal)? Or, a perfect math function with the known values of the parameters ?
How many cycles in the following time intervals?
- between 0 and
- between and
- between and
- between and
- between and
回答 (1 件)
Sara Boznik
2023 年 7 月 2 日
Hi,
if you dont have specific function, you can do simple step function like below:
t = linspace(0, 1, 1000); % This defines the time scale in the plot
f = @(t) [(t > 1) - (t > 0.5)] + [(t > 0) - (t > 0.5)];
stairs(t, f(t));
Hope it help.
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!