【Matlab】矩阵对矩阵求导

使用雅可比矩阵:

1.程序

clear;
syms x y z;   %创建符号变量
f = [x*y;y*v;x+y+z];
v = [x,y,z];
R = jacobian(f,v)
b = jacobian(x+v,z)

2.结果

>> test
 
R =
 
[ y, x, 0]
[ 0, z, y]
[ 1, 1, 1]
 
 
b =
 
[ 1, 0, 1]
 
>> 

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/89416940