MATLAB Answers

Error in port widths or dimensions Error.

조회 수: 1(최근 30일)
Onat Aytac
Onat Aytac 2021년 5월 29일
댓글: Onat Aytac 2021년 6월 4일
My input is a time history which is a 1x3001 double. How can I solve that error? Thanks.
  댓글 수: 2
Onat Aytac
Onat Aytac 2021년 6월 1일
I couldn't figure out which block to use as input. I have tried to add timestep block between the input and the summation block but it did not work.

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

채택된 답변

Fangjun Jiang
Fangjun Jiang 2021년 6월 1일
If your t=sin(0:0.01:30), which is 1x3001 double, you need to make it a column vector and then use the "From Workspace" block.
You also need to specify the time steps for this data, for example, TimeStep=0:0.01:30.
Then specify the value of the "From Workspace" block as [TimeStep', t']

추가 답변(0개)

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by