i want to calculate the jacobian with known values of A B and V2, the answer should be 14 -4 0; -4 9 0; 0 0 14
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
syms A B D E F V2 P2 P3 Q3;
P2=10*V2*sin(A)+4*V2*sin(A-B)+1.5;
P3=5*sin(B)+4*sin(B-A)-1;
Q3=-10*V2*cos(B)+14*(V2^2)-4*V2*cos(A-B)+.8;
D=[P2;P3;Q3];
E=[A,B,V2];
J=jacobian(D,E)
A=0;
B=0;
V2=1;
D=[P2;P3;Q3];
F=[A;B;V2]
J=jacobian(D,F)
P2_1=10*V2*sin(A)+4*V2*sin(A-B)+1.5
P3_1=5*sin(B)+4*sin(B-A)-1
Q3_1=-10*V2*cos(B)+14*(V2^2)-4*V2*cos(A-B)+.8
Error Message is as follows:
Error using sym/jacobian (line 44)
Second argument must be a vector of variables.
Error in matlab_NR2 (line 14)
J=jacobian(D,F)
0 Commenti
Risposte (1)
David Hill
il 25 Giu 2021
syms A B D E F V2 P2 P3 Q3;
P2=10*V2*sin(A)+4*V2*sin(A-B)+1.5;
P3=5*sin(B)+4*sin(B-A)-1;
Q3=-10*V2*cos(B)+14*(V2^2)-4*V2*cos(A-B)+.8;
D=[P2;P3;Q3];
E=[A,B,V2];
J=jacobian(D,E);
j=subs(J,[A,B,V2],[0,0,1]);%use subs function to substitute values in
0 Commenti
Vedere anche
Categorie
Scopri di più su Linear Algebra in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!