simulink ドット インデックスについて

10 visualizaciones (últimos 30 días)
matlab_beginner
matlab_beginner el 15 de Sept. de 2019
Comentada: Yoshio el 20 de Sept. de 2019
こんにちは。タイトルの件で以下質問を記載します。
スクリプトにて、simulink実行で下記エラーが出力されます。
------
エラーメッセージ:
この型の変数ではドット インデックスはサポートされていません。
(ログでのエラーの対象行は、★の箇所です)
スクリプト抜粋:
expdata = load( strcat( 'outdata\', patname, '.mat' ) );
regError=0;
for i = 1:simout.dsmout.numElements   ・・・★
compnum = min( min( simout.dsmout{i}.Values.length, expdata.simout.dsmout{i}.Values.length) );
if ( simout.dsmout{i}.Values.Data(1:compnum) == expdata.simout.dsmout{i}.Values.Data(1:compnum) )
% fprintf( strcat( simout.dsmout{i}.Name, ' OK\n' ) );
else
fprintf( strcat( simout.dsmout{i}.Name, ' NG\n' ) );
regError=1;
end
end
どのように対処すれば良いのでしょうか。
よろしくお願いいたします。
  1 comentario
Yoshio
Yoshio el 20 de Sept. de 2019
まずwhos コマンドでexpdataの中身を見て、変数の型を確認してはどうでしょうか。

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 一般分野への適用 en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!