How to add a sine wave with a frequency of 50hz and a magnitude of 20 in Simulink

조회 수: 86 (최근 30일)
How to input magnitude value in sine wave block

채택된 답변

Sam Chak
Sam Chak 2022년 7월 28일
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
Sam Chak
Sam Chak 2022년 7월 28일
You are welcome, @Pranav. I'm glad it works. If you find the brief solution is helpful, please consider accepting ✔ and voting 👍 the Answer. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Pranav
Pranav 2022년 7월 28일

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by