How do I plot three waves (sin, triangle, and square) with a Vp-p of 4V and the function generator set at 1KHz
조회 수: 1 (최근 30일)
이전 댓글 표시
Vp-p=4V period=1mu sec
댓글 수: 0
답변 (1개)
Naman Chaturvedi
2018년 9월 7일
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);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!