Hello everyone, please help me with this error Error:Invalid

조회 수: 10 (최근 30일)
hai
hai 2025년 3월 5일
답변: Sabin 2025년 8월 6일
Error:Invalid setting for input port dimensions of 'VPP_5_3_2025/Three-Phase Dynamic Load/Model/Demux3'. The dimensions are being set to 1440. This is not valid because the total number of input and output elements are not the same
Error:Error in port widths or dimensions. Invalid dimension has been specified for 'Input Port 2' of 'VPP_5_3_2025/Three-Phase Dynamic Load/Model/Real-Imag to Complex'.
  댓글 수: 8
Walter Roberson
Walter Roberson 2025년 3월 5일
How is this all supposed to work when your load_data is only 1439 entries instead of 1440 like your time vector ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Sabin
Sabin 2025년 8월 6일
The problem is the way you pass the data in the From Workspace block. What you want is to have P as a time varying signal of dimension 1 but instead you end up with dimension 1439. If you provide the data as [t, P_load] you must double check that t and P_load are column vectors. It appears that they are row vectors. Therefore, the fix is to specify the data as [t’, P_load’]. I hope this helps.

카테고리

Help CenterFile Exchange에서 Simscape Electrical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by