t=0:0.01:5;
v=exp(-t)+sin(t)
figure
plot(t,v);
h=get(gca,'children')
x = get(h,'XData');
y = get(h,'YData');
dy = diff(y) ./ diff(x);
hold on
plot(x(1:end-1),dy,'r')
legend('原始图像','求导图像')
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交