Running simulation in a loop
조회 수: 3 (최근 30일)
이전 댓글 표시
I have designed a model which I want to simulate in a loop to plot graphs for iterations changing one variable per interation.
The Model is of a Solar Array system, I wish to plot the characteristic curves from multiple irradiance on one graph, or running the simulations individual storing the data which can then be plotted on the same axis.
댓글 수: 0
답변 (1개)
ag
2025년 4월 23일
Hi Reece,
I kindly suggest you to refer to my answer on the following MATLAB answers post to understand how to simulate a model in a loop using MATLAB: https://www.mathworks.com/matlabcentral/answers/1642620-looping-and-storing-variable-to-be-used-in-simulink-model#answer_1564005?s_tid=prof_contriblnk
To store the obtained results upon simulation, you may use the "To Workspace" block in simulink and utilise the same to plot the results as per the need.
For more details on "To Workspace" block, please refer to the following MathWorks documentation: https://www.mathworks.com/help/simulink/slref/toworkspace.html
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Solar Power에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!