Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Need help saving an array into a variable and using that variable during the same simulation.
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
So I am trying to register a specific number or array during a simulation and assign it to a variable which I can use during the same simulation. Using the TO WORKSPACE does not help my problem as the data will be saved and can be used in the next simulation when the current simulation is stoped. It would be great if someone can help me with that. what are my options ? would s function help?
댓글 수: 0
답변 (1개)
Walter Roberson
2018년 3월 8일
편집: Walter Roberson
2018년 3월 8일
Put it into a signal that you attach as needed, or register global data. https://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-function-block.html
댓글 수: 4
Walter Roberson
2018년 3월 9일
Is this intended to be something that varies with time? Or is it something that you calculate once and then remains unchanged until the end of the simulation? If it is calculated once then can it be calculated at initialization time?
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!