How can I solve dimension problem? Simulink
7 ビュー (過去 30 日間)
I am getting this error
" Error in port widths or dimensions. 'Output Port 1' of 'untitled/From29' is a one dimensional vector with 1369 elements."
saveV.mat size 1370x2 [time,Velocity]
saveACC.mat size 1370x2 [time,Acceleration]
Also I do not know why size decreased from 1370 to 1369.
stozaki 2022 年 5 月 27 日
The Logical operands input of the If block must be a scalar signal. It's a block specification.
Also, the output of the If block should be connected to the Action Subsystem. It is also a block specification.
その他の回答 (1 件)
Walter Roberson 2022 年 5 月 27 日
You need to transpose the data in the file. The first row is the time stamps and rows after that are samples for that time. You have two times and 1369 values.
This is unlike From Spreadsheet, which treats the first column as time if I recall correctly.