Borrar filtros
Borrar filtros

Scaling the derivative of a data vector?

1 visualización (últimos 30 días)
Superfish
Superfish el 17 de Mzo. de 2012
I have a vector of data, and I would like to scale the derivative of this data by some amount, and see the how it changes the original data.
How can I do this? Thanks.

Respuesta aceptada

Jan
Jan el 17 de Mzo. de 2012
You could calculate the gradient, multiply if by the factor and integrate.
But the result can be found without calculating the gradient explicitely also. Hint: Write down the (forward or backward or centered) difference quotient.
Is this a homework?
  2 comentarios
Superfish
Superfish el 17 de Mzo. de 2012
Not homework. Just a guy whose brain is failing at maths trying to do some simple data analysis :)
Thanks, upon researching numerical integration more just now I found the function cumtrapz, I was using trapz and getting confused.
Jan
Jan el 18 de Mzo. de 2012
Another hint: x = rand(1, 6);
disp(gradient(x)); disp(gradient(x)*2); disp(gradient(x*2));
See: http://en.wikipedia.org/wiki/Linear_Operator

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by