hi
i need help in the following code. i require "df" value in numeric form but here i get the complete expressions due to syms alpha1 alpha2 alpha3. Kindly help me and guide me how i get results of "df" and "inv(df)" in numeric format. kindly help me please 🙂
with best regards Mudasir
alpha1=0.2; alpha2=0.4;alpha3=0.6;v1desired=10;T=[v1desired 0 0]';f1=[ cos(alpha1)+cos(alpha2)+cos(alpha3) cos(5*alpha1)+cos(5*alpha2)+cos(5*alpha3) cos(7*alpha1)+cos(7*alpha2)+cos(7*alpha3)]; syms alpha1 alpha2 alpha3 f=[ cos(alpha1)+cos(alpha2)+cos(alpha3) cos(5*alpha1)+cos(5*alpha2)+cos(5*alpha3) cos(7*alpha1)+cos(7*alpha2)+cos(7*alpha3)];df=jacobian(f,[alpha1;alpha2;alpha3]) dalpha=(inv(df))*(T-f1);
Best Answer