Syntax error in simulink function
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akylas Strathgakos
am 27 Nov. 2015
Kommentiert: Akylas Strathgakos
am 28 Nov. 2015
Hello, can you help me find the error in this function?
(1/L)*(-R*u(1)+ws*L*u(2)-md*u(3)+Ud)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Nov. 2015
There is no obvious syntax error there, but the code would fail if L is a vector (or matrix) or if both L and ws are vectors or matrices when size(ws,2) is not the same as size(L,1)
You might need
(1./L) .* (-R*u(1) + ws .* L * u(2) - md*u(3) +Ud)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!