Error in port widths or dimensions. Invalid dimension has been specified for input ' SFunction '.

Hello. Here in gain (180/pi) i've got trouble with this error of width or dimenssions. What kinda reason was that, and how can i fix it ?

답변 (1개)

Aditya Patil
Aditya Patil 2020년 7월 17일
You need to ensure that the various matrices you use are of appropriate shape, so that substraction is possible. For example, if diff(u) is of shape R x C, then m should be R x 1, or 1 x 1, or R x C.

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2020년 6월 4일

답변:

2020년 7월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by