MATLAB Answers

Error in port widths or dimensions Error.

1 view (last 30 days)
Onat Aytac
Onat Aytac on 29 May 2021
Commented: Onat Aytac on 4 Jun 2021
My input is a time history which is a 1x3001 double. How can I solve that error? Thanks.
  2 Comments
Onat Aytac
Onat Aytac on 1 Jun 2021
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.

Sign in to comment.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 1 Jun 2021
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']

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!