MATLAB Matlab; Jacobian array calculation question

  • Thread starter norian
  • Start date
i wanna ask a question, if you help me i'll apraciate.

I have a jacobian matris with 4 initial parameters. J [1,1] like:

J =

in here. I know T, Yf, Yox and Ypr.
At that problem i m having trouble with putting these parameter inside the jacobian matris because it is a darivative of some function. And printing J gives me that answer. do you know how to do that(calculate J with respect to 4 know parameters)? By the way i m working on matlab. and there are lots of J(as i made J1, J2 etc.) inside a for loop so i cant calculate it by hand :)


What i had tried:

as an example;

syms x y z
f = [x*y*z; y; x + z];
v = [x, y, z];
R = jacobian(f, v)

The result is

R =
[ y*z, x*z, x*y]
[ 0, 1, 0]
[ 1, 0, 1]

as vector R in here i found J array above, but i could not give a value for x,y or z to compute R.

Want to reply to this thread?

"Matlab; Jacobian array calculation question" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving