필터 지우기
필터 지우기

showing error by computing jacobian matrix

조회 수: 4 (최근 30일)
Ran E
Ran E 2020년 12월 4일
편집: Matt J 2020년 12월 4일
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