필터 지우기
필터 지우기

Matlab - Simulink: Automatically changing block variables and collecting data from a model

조회 수: 1 (최근 30일)
I have a relatively basic Simulink block Model in which there is a Gaussian Noise Generator & an Error rate calculator. I want to get data on how changing the "variance" property of the Gaussian noise generator affects the result from the error rate calculator.
The most obvious way to do this is to manually run the simulation, record the results, change the variance of the Gaussian Noise Generator, rerun etc.
However, is there a way of getting the Simulink model to run the model, increase the Gaussian Noise variance by an amount, and rerun automatically for x number of iterations, and then to store the results in a list or array?
I am damn sure there is, but being new to Matlab & Simulink I have no idea of how to go about doing it? Somehow I imagine it would involve setting the "variance" as an input, and collecting the figure from the error rate calculator as an output - but again, I don't really know.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 3월 27일
편집: Azzi Abdelmalek 2014년 3월 27일
You can change your block parameters by set_param command

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by