How do I use a variable in a Sine Wave block to specify the frequency to be generated from a white noise block in Simulink?

조회 수: 2 (최근 30일)
I have a simulation in Simulink where I want to use a White Noise block to control the frequency that a Sine Wave block outputs to be used in the circuit (simulation). Can I just specify a variable and use this in the Sine Wave block to determine what the signal output is to be? How can I do this? I have tried to use a funtion block and an Block Parameters to Work Space block but nothing happens. I get no errors but in the work space the variable does not change from the initial value of 0.
I would appreciate any help that I can recieve.
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2022년 10월 10일
hello
the Sine Wave block cannot be controlled from outside (unless a specific value (fix) exist in the workspace and you would use that
instead I would reccommend that you use the trigonometric block (sin) to create your signal from the frequency (given by the random generator) and current time and amplitude
you see , it's fairly easy to create your own fully customized sine wave block

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

답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by