Error in port widths or dimensions.

2 ビュー (過去 30 日間)
Cosimo Iurlaro
Cosimo Iurlaro 2017 年 3 月 21 日
回答済み: Ed Marquez 2017 年 3 月 24 日
I have a problem with an add block, when I run the program wrote out: "Error in port widths or dimensions. Output port 1 of 'brushlessdcmotor/BLDC/Add5' is a one dimensional vector with 1 elements." What does it mean? What I have to do?
Thanks.

回答 (1 件)

Ed Marquez
Ed Marquez 2017 年 3 月 24 日
Hey Cosimo,
Try using a Signal Specification block and set the dimensions of the output signal from the Add5 block to 1. Try the same with the output of the switch block. If the issue continues, it is possible that the model is corrupted. In that case, you can copy all the blocks in the existing model and paste them into a blank new model
Good luck!

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by