フィルターのクリア

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 Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by