Matlab的離散點曲線導數曲率數值模擬方法

clc; clear all; close all; x0 = linspace(0, 1); y0 = sin(x0).*cos(x0); h = abs(diff([x0(2), x0(1)])); % 模擬一階導 figure; box on; hold on; ythe1 = cos(x0).^2 - sin(x0).^2; %理論一階導 yapp1 = gradient(y0, h);
相關文章
相關標籤/搜索