showing error by computing jacobian matrix

4 次查看(过去 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 个)

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by