Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
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.

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 27 Mar 2014
Modifié(e) : Azzi Abdelmalek le 27 Mar 2014
You can change your block parameters by set_param command

Community Treasure Hunt

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

Start Hunting!

Translated by