フィルターのクリア

Possible bug in Diagnostic Viewer for a switch block

2 ビュー (過去 30 日間)
Ricardo A. Baila
Ricardo A. Baila 2019 年 4 月 26 日
編集済み: Rajagopal N 2019 年 4 月 26 日
Hello,
I was experimenting with the Switch block, trying to select one or another vector simultaneously for different cases. Since I wasn't being able to, I decided to open a blank new Simulink model, to try it in a simpler way.
deleteme.png
When I was trying it, I arrived to the situation in the attached file, that, if you run it, it outputs an error. In the Diagnostic Viewer you get the follwoing message:
% The signal dimensions of the first and third input ports of Switch block 'deleteme/Switch' are
% different. To support a variable-size output signal, on the "Signal Attributes" pane of the block
% dialog, select the parameter "Allow different data input sizes (Results in variable-size output
% signal)".
Well, this is obviously not the case. The dimensions of the first and third input ports are the same.

回答 (1 件)

Rajagopal N
Rajagopal N 2019 年 4 月 26 日
編集済み: Rajagopal N 2019 年 4 月 26 日
Instead of giving array value give scalar value to the switch control input that will not through you the error.

カテゴリ

Help Center および File ExchangeConfigure and View Diagnostics についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by