Assignment has more non-singleton rhs dimensions than non-singleton subscripts

1 Ansicht (letzte 30 Tage)
ode
  2 Kommentare
Walter Roberson
Walter Roberson am 20 Jun. 2017
Please post the complete error message, everything in red
Jan
Jan am 20 Jun. 2017
Bearbeitet: Jan am 20 Jun. 2017
Please use terms as tags, which allows to classify your question. "Walter Roberson" might read or answer your message also, if his name is not used as tag. Thanks.
If you post the complete error message, the readers do not have to guess, where the error occurres.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

KSSV
KSSV am 20 Jun. 2017
Replace line
xx(:,i+2)=2*xx(:,i+1)-xx(:,i)-del*D*(xx(:,i+1)-xx(:,i))+del^2*(fx(xx(:,i))+B*u(i));
With
xx(:,i+2)=2*xx(:,i+1)-xx(:,i)-del*D*(xx(:,i+1)-xx(:,i))+del^2*(fx(xx(:,i))'+B*u(i));

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by