how to calculate partial derivative

3 visualizaciones (últimos 30 días)
kalyani ohri
kalyani ohri el 4 de Feb. de 2016
Comentada: Star Strider el 6 de Feb. de 2016
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

Respuesta aceptada

Star Strider
Star Strider el 4 de Feb. de 2016
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 comentarios
kalyani ohri
kalyani ohri el 6 de Feb. de 2016
Thanks Sir..
Star Strider
Star Strider el 6 de Feb. de 2016
My pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by