Attempt to extract field 'Bc' from 'double'_error.
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I dont know why i have this error though the dimensions are true. Please help my code:
function Nc = fcn(qe, vr, wr, f,xe,ye)
Bc = [-1 0 0;ye -xe -1];
Bc1 = 5;
qeT = qe';
A = transpose(qeT.*Bc)*Bc1*norm(qe)*(f(1)*norm(vr)+f(2)*norm(wr)+f(3));
B=((norm(qeT.*Bc))^2+Bc1*(norm(Bc))^2);
Nc = -A/B;
Please help me. This error in line 5,6:
Size mismatch (size [1 x 3] ~= size [2 x 3]). Function 'Kinematic Controller/MATLAB Function' (#69.118.125), line 5, column 15: "qeT.*Bc"
0 Kommentare
Antworten (1)
Walter Roberson
am 18 Apr. 2021
qeT.Bc needs to have the period replaced by an operator such as qeT*Bc
2 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!