Symbolic toolbox substitution causing large values
古いコメントを表示
I am creating a Jacobian matrix for a state space model. I Delcared all the constants and variables as variables in syms. After Jacobian when i substitue the constant values I getting some values which are not the exact values what i want. Can any help me in this?
clc
clear all
syms v T m qa Ta mg tow cv R Va B0 a A0 B C0 c Tg gamma
f1 = qa
f2 = ((Ta-T)/tow)-(T/cv)*(qa/m)*{(R*mg*(1+mg.^2/Va.^2)/Va)+(mg.^2/Va.^2)*(B0*R+2*C0/Tg.^3)-...
((2*c*mg.^3/Va.^3*Tg.^3)*(1+gamma*mg.^2/Va.^2)*exp(-gamma*mg.^2/Va.^2))}
f3 = 0
%to solve the variabes
j = jacobian([f1 f2 f3],[v T m])
var = subs(j,[B0,C0,R,Tg,Va,c,cv,gamma,mg,tow],[4.07*10.^-5,816.58,8.134,295,25*10.^-3,0.07381,20.8040,5.3*10.^-9,144.1832,26.574])
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Assumptions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



