Forward, backward and central differences
Mostrar comentarios más antiguos
trying to calculate the forward, backward and central difference for tanx+cosy with a step of 0.1 and x and y domains between 1 and 5.
3 comentarios
madhan ravi
el 21 de Oct. de 2018
What have you tried so far?
Image Analyst
el 21 de Oct. de 2018
What is your definition of those 3 differences?
HoboHarry
el 21 de Oct. de 2018
Respuestas (1)
Image Analyst
el 21 de Oct. de 2018
Try conv():
kernel = [1, -1];
output = conv(signal, kernel);
kernel = [-1, 1];
output = conv(signal, kernel);
kernel = [1, -2, 1];
output = conv(signal, kernel);
See if that gives you what you want. Do you have a signal and the desired output so we can check it?
Categorías
Más información sobre Functional Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!