Plotting A Waveform With Various Inputs

7 ビュー (過去 30 日間)
Aaron Kurlantzick
Aaron Kurlantzick 2021 年 3 月 22 日
コメント済み: Arthi Sathyamurthi 2021 年 3 月 26 日
I have inputs consisting of amplitude, frequency, pulse width, ramp toggle, ramp flat, rampslope, intraburst toggle, intraburst packet, intraburst period, and wave phase. I believe this would be a sum of a sine, square, and triangular wave. I couldn't find any way of using all these inputs in one equation nor any equations for the three component waves that take all of the inputs. These values are being obtained from a teammate's simulation. Any help would be gretaly appreciated. Thank you

回答 (1 件)

Arthi Sathyamurthi
Arthi Sathyamurthi 2021 年 3 月 25 日
Few of the inputs mentioned are common to sine, square and triangular wave and some are specific. I am not sure of what exactly you wish to achieve. So assuming you want to sum the three waves together, you can look at the sin, square, and sawtooth function on how to generate the functions. Make sure to give the inputs arguments as by the function correctly. Generate the three waveforms with equal array size to sum them together and then plot the output.
  2 件のコメント
Aaron Kurlantzick
Aaron Kurlantzick 2021 年 3 月 25 日
Thank you for those links. Would you know how to get a square wave with a specified pulse width? I don't see that as an option for its inputs
Arthi Sathyamurthi
Arthi Sathyamurthi 2021 年 3 月 26 日
Duty cycle is the percentage of the ratio of pulse duration, or pulse width to the total period (inverse of your frequency) of the waveform. You can generate the square wave with specific duty cycle by x = square(t,duty). To find an example how to do it you can look at Mathworks Documentation here.

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

カテゴリ

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

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by