在網路上看到可愛的函數操
所以就用matlab run了一下
比較特別的是在GUI介面中
子圖最多只能選擇4*5個
利用指令就可以n*n個不用擔心了
另外是不知道有無方法一口氣畫出圓形
目前是分上下兩半圓畫的
x=linspace(-4,4,267);
subplot(5,3,1);plot(x,x)
subplot(3,5,2);plot(x,x.^2)
subplot(3,5,3);plot(x,x.^3)
subplot(3,5,4);plot(x,sin(x))
subplot(3,5,5);plot(x,cos(x))
subplot(3,5,6);plot(x,tan(x))
subplot(3,5,7);plot(x,cot(x))
subplot(3,5,8);plot(x,1./x)
subplot(3,5,9);plot(x,-1./x)
subplot(3,5,10);plot(x,abs(x))
subplot(3,5,11);plot(x,-abs(x))
subplot(3,5,12);plot(x,-x)
subplot(3,5,13);plot(x,log(x))
subplot(3,5,14);plot(x,2.^x)
subplot(3,5,15);plot(x,sqrt(25-x.^2))
x=linspace(-4,4,267);
subplot(3,5,15);plot(x,sqrt(16-x.^2))
hold on
subplot(3,5,15);plot(x,-sqrt(16-x.^2))
reference
洪維恩, 著 : Matlab 7程式設計 / 洪維恩著 台北市 : 旗標, 2005[民94].[ISBN 9574422607 (平裝) 新台幣680元] pp4-18~4-20