필터 지우기
필터 지우기

how to vary parameters in Simulink

조회 수: 10 (최근 30일)
Gabriel Oliviero
Gabriel Oliviero 2016년 3월 30일
댓글: Fred Tabash 2022년 5월 7일
Hello, I have the attached system and I would like to vary the frequency of the AC source, to make a frequency sweep. Can anyone help with that?
Thank you.
  댓글 수: 2
Muhammed Fasil
Muhammed Fasil 2016년 3월 31일
Near RUN(green) button , there is a left side directed button. Click on that and enter a time in that Pause block. So when simulation reaches that time, it pauses. At that time u manually change input frequency
Gabriel Oliviero
Gabriel Oliviero 2016년 4월 1일
when you press pause during the simulation, the parameters of the blocks are blocked and you can't change.

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

답변 (1개)

Sebastian Castro
Sebastian Castro 2016년 3월 31일
Do you mean changing frequency during simulation, or being able to run multiple simulations with different frequencies each?
  • If you want to change frequency during simulation, you can change the input with a Controlled Voltage Source block and pass in a Sine wave of varying frequency into this block.
  • If you want to change frequency between simulations, you can set the AC Voltage Source's frequency to a MATLAB variable and change the value of the variable between simulations. This lends itself well for scripting, too.
Also, what is your end goal? Simulink Control Design has a way to automatically perform frequency response estimation and get an experimental Bode plot.
- Sebastian
  댓글 수: 3
Sebastian Castro
Sebastian Castro 2016년 4월 6일
I see... did you see this new video on sensitivity analysis in R2016a?
Fred Tabash
Fred Tabash 2022년 5월 7일
Greetings, Sebastian...
In fact, I did see the video and am practicing on it right now...
however, I have a problem when I want to build a physical model, such as a circuit with diodes, resistors, capacitors, and so on...
My goal is to perform sensitivity analysis and Monte Carlo simulation... but I can't find these parameters in the App sensitivity analysis. Would you mind if I asked how I could specify the parameter as a variable for the app to be able to select and analyze it?
I appreciate your help.

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

카테고리

Help CenterFile Exchange에서 Control Design in Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by