showing error by computing jacobian matrix
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm trying to create a Jacobian matrix
I have this value:
pixel=[4 5; 6 7; 8 9; 2 3]
and i want to compute the Partially derived' and i need to get 4X6 matrix.
I tried to do these commands and it doesnt work:
for i=1:length(pixel)
x=pixel(1:1:i,1)
y=pixel(1:1:i,2)
syms a0 b0 a1 a2 b1 b2
A(i)=jacobian ([a0+a1*x+a2*y, b0+b1*x+b2*y], [a0, b0, a1, a2, b1, b2])
end
The answer should be like this:
A = [1 0 4 5 0 0
0 1 0 0 6 7
1 0 8 9 0 0
0 1 0 0 2 3]
thank you about your help.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!