Same Load function error for all .slx or .mdl files

10 ビュー (過去 30 日間)
Khaled Ibrahim
Khaled Ibrahim 2018 年 10 月 17 日
コメント済み: Khaled Ibrahim 2018 年 10 月 17 日
I get this error when trying to load any Simulink model to be able to use cftool... for .slx files i get
"Error using load
Number of columns on line 2 of ASCII file OCT.slx must be the same as previous lines."
while i get this for .mdl files
"Error using load
Number of columns on line 21 of ASCII file OCT.mdl must be the same as previous lines."
How to get over this?

採用された回答

Steven Lord
Steven Lord 2018 年 10 月 17 日
Simulink® models aren't data to be loaded and passed into cftool. They are themselves programs. You could instead open the model, simulate the model, and export the simulation results to a variable to use with cftool.
If instead you want to optimize parameters of your model in order to get the results to match some expected results, you may want to use Simulink® Design Optimization™ instead of cftool.
  1 件のコメント
Khaled Ibrahim
Khaled Ibrahim 2018 年 10 月 17 日
Thanks for your reply. I wanted to apply laboratory results on Simulink models and graph V vs. I and more. "To Workspace" block did the job.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeChoose and Parameterize Blocks についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by