How to add a sine wave with a frequency of 50hz and a magnitude of 20 in Simulink
조회 수: 86 (최근 30일)
이전 댓글 표시
채택된 답변
Sam Chak
2022년 7월 28일
Hi @Pranav
Enter the values for the Amplitude and Frequency in the Sine Wave block. In MATLAB, it looks like this:
t = 0:0.0001:0.1;
freq = 50; % Frequency
amp = 20; % Amplitude
x = amp*sin(2*pi*freq*t);
plot(t, x), grid on, ylim([-40 40]), xlabel('t')
댓글 수: 6
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!