MATLAB---CAD绘制四个Hermit基函数
生活随笔
收集整理的這篇文章主要介紹了
MATLAB---CAD绘制四个Hermit基函数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
function HermitBaseFun()
%繪制四個Hermit基函數
k=1;
for u=0:1/100:1FG=[1 u u*u u*u*u]*[1 0 0 0;0 0 1 0;-3 3 -2 -1;2 -2 1 1];F0s(k) = FG(1);F1s(k) = FG(2);G0s(k) = FG(3);G1s(k) = FG(4);xs(k) = u;k=k+1;
end
G0s(31)
hold on
plot(xs,F0s,'r','linewidth',2)
plot(xs,F1s,'g','linewidth',2)
plot(xs,G0s,'b','linewidth',2)
plot(xs,G1s,'k','linewidth',2)
hold off
axis equal
box on
總結
以上是生活随笔為你收集整理的MATLAB---CAD绘制四个Hermit基函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: css-3D动画
- 下一篇: 用Python写了一个微信聊天机器人(打