How can I do Jacobian with complicated equation?

1 view (last 30 days)
syms t real
x = sym('x', [4,1],'real');
y = x(3:4);
O = sym('O', [2,1],'real');
% L is equation of x,O
f1 = jacobian(L, y);
f2 = jacobian(L, y);
matlabFunction(f2, 'file','func_f2','vars',{t,x,O});
If L is a simple equation of x and O, it can be solved in few seconds.
My problem is my L equation is too complicate, matlab ran for 2 days and didn't get answered yet.
I tried
L = simplify(L)
But it can't be solved, matlab out of memory.
What can I do?
  1 Comment
Githin John
Githin John on 9 Jan 2020
Can you share what the function L is so that I can reproduce the issue?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!