I have a set of nonlinear equations (run by rk4 method). How can I compute the Jacobian for those?

4 ビュー (過去 30 日間)
The nonlinear equations give attitude quaternion and angular velocity of small satellite.
How may I compute the Jacobian matrices to use in a Kalman filter?

採用された回答

Benjamin Großmann
Benjamin Großmann 2020 年 2 月 26 日
Assume you have the set of nonlinear eqations and the vector of independent variables defined in Matlab, then you can use the jacobian function to compute the jacobian matrices, e.g.
clearvars, close all
clc
% the variables
x = sym('x',[3,1]);
% some random functions
f = [x(1)^2 + x(2); ...
sin(x(3)); ...
cos(x(1) + x(2))];
% jacobian calculation
J = jacobian(f,x);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSatellite and Orbital Mechanics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by