Scaling the derivative of a data vector?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Jan
2012-3-17
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 个评论
Jan
2012-3-18
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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!