how to calculate partial derivative

3 ビュー (過去 30 日間)
kalyani ohri
kalyani ohri 2016 年 2 月 4 日
コメント済み: Star Strider 2016 年 2 月 6 日
RGB =imread('image.jpg');
hsv= rgb2hsv(RGB);
imshow(hsv);
r1=0.1;
r2=0.85;
i= 0:20:240;
s= 0.0:0.2:1.0;
wgray = 1 - bsxfun(@power, s(:), (r1*(255./(i(:).')).^r2) );
P=diff(wgray,s);
i want to calculate partial derivative of wgray w.r.t s and i have applied but getting error in line 9

採用された回答

Star Strider
Star Strider 2016 年 2 月 4 日
I would use the gradient function. It returns two matrices, the partial derivatives in each direction of the input matrix, both the same size as the input matrix. You can use one or both of the returned derivative matrices.
  6 件のコメント
kalyani ohri
kalyani ohri 2016 年 2 月 6 日
Thanks Sir..
Star Strider
Star Strider 2016 年 2 月 6 日
My pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by