Forward, backward and central differences
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Image Analyst
2018년 10월 21일
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?
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!