How to transfer output from simulink into m-file in real time
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I want to run the iterative algorithm in the m-file. There is a objective function in the m-file. The output of simulink needs to be used in the iterative algorithm, and it is used once every iteration. 
e.g.
while k<N
alphak=object(x);%function
betak=m^alphak;
The "object" is a external function that needs to be called. In the function, I need to use output from simulink. Therefore, I want to consult that How to transfer output from simulink into m-file in real time?
0 件のコメント
回答 (1 件)
  Paul
      
      
 2022 年 7 月 8 日
        Asusming the loop only needs the output of the simulation after the simulation completes ...
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Large-Scale Modeling についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

