How do I plot three waves (sin, triangle, and square) with a Vp-p of 4V and the function generator set at 1KHz

回答 (1 件)

If its MATLAB you want to plot it in,
f=1000;
t=0:0.00001:0.002;
s=2*sin(2*pi*f*t);
tr=2*sawtooth(2*pi*f*t);
sq=2*square(2*pi*f*t);
plot(t,s);hold on;plot(t,sq);hold on;plot(t,tr);

カテゴリ

ヘルプ センター および File Exchange で 2-D and 3-D Plots についてさらに検索

質問済み:

2018 年 9 月 4 日

回答済み:

2018 年 9 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by