Matlab - Simulink: Automatically changing block variables and collecting data from a model
3 次查看(过去 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.
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!