Simulinkモデルのブロック数と入出力数の一括表示方法
    18 views (last 30 days)
  
       Show older comments
    
    大貴 渡邉
 on 27 Oct 2021
  
    
    
    
    
    Edited: Toshinobu Shintai
    
 on 27 Oct 2021
            Simulinkモデル(参照モデルを含む)のブロック数と入出力数を一括で出力し、
それをexcel等の別ファイルで保存する方法はありますでしょうか。
0 Comments
Accepted Answer
  Toshinobu Shintai
    
 on 27 Oct 2021
        
      Edited: Toshinobu Shintai
    
 on 27 Oct 2021
  
      ・Simulinkモデル内のブロック数に関して
・入出力数に関して
"find_system"で見つけたブロックに対して、"get_param"というコマンドでポートの種類とその数を知ることができます。コマンドとしては、例えば以下のような形です。
port_h = get_param('model_name/block_name', 'PortHandles');
・excel等の別ファイルで保存する方法について
0 Comments
More Answers (1)
See Also
Categories
				Find more on 対話型のモデル編集 in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

