MATLAB怎樣畫出高數(shù)課本上的的這些區(qū)間示意圖
代碼:
close all
%% 微信公眾號:海洋與大氣科學
%% 作者:mapm:QQ:916490285
%% 時間:2022年12月1號
%% 1:雙閉區(qū)間
figure
set(gcf,'color','w')
scatter(0,0,'o','MarkerEdgeColor','black','MarkerFaceColor','black');
hold on
scatter(1,0,'o','MarkerEdgeColor','black','MarkerFaceColor','black');
hold on
scatter(5,0,'o','MarkerEdgeColor','black','MarkerFaceColor','black');
hold on
annotation('arrow',[0.2 0.8],[0.52 0.52],'LineStyle','-','color',[0 0 0],'HeadStyle','cback3');
hold on
line([1,5],[1,1],'color','k')
hold on
line([1,1],[0,1],'color','k')
hold on
line([5,5],[0,1],'color','k')
axis([-2 8 -10 10])
hold on
for i=1:0.5:4.5
line([i,i+0.5],[0,1],'color','k')
hold on
end
text(0,-1,'O','fontsize',14,'fontweight','bold','fontname','time news roman')
text(1,-1,'a','fontsize',14,'fontweight','bold','fontname','time news roman')
text(5,-1,'b','fontsize',14,'fontweight','bold','fontname','time news roman')
text(6.5,-1,'x','fontsize',14,'fontweight','bold','fontname','time news roman')
text(2,2,'[a,b]','fontsize',14,'fontweight','bold','fontname','time news roman')
set(gca,'xtick',[],'xticklabel',[],'xcolor','w','ytick',[],'yticklabel',[],'ycolor','w')
title('雙閉區(qū)間','fontsize',14,'fontweight','bold','fontname','黑體')
export_fig('雙閉區(qū)間.png','-r300')
%% 2:雙開區(qū)間
figure
set(gcf,'color','w')
scatter(0,0,'o','MarkerEdgeColor','black','MarkerFaceColor','black');
hold on
scatter(1,0,'o','MarkerEdgeColor','black','MarkerFaceColor','w');
hold on
scatter(5,0,'o','MarkerEdgeColor','black','MarkerFaceColor','w');
hold on
annotation('arrow',[0.2 0.8],[0.52 0.52],'LineStyle','-','color',[0 0 0],'HeadStyle','cback3');
hold on
line([1,5],[1,1],'color','k')
hold on
line([1,1],[0,1],'color','k')
hold on
line([5,5],[0,1],'color','k')
axis([-2 8 -10 10])
hold on
for i=1:0.5:4.5
line([i,i+0.5],[0,1],'color','k')
hold on
end
text(0,-1,'O','fontsize',14,'fontweight','bold','fontname','time news roman')
text(1,-1,'a','fontsize',14,'fontweight','bold','fontname','time news roman')
text(5,-1,'b','fontsize',14,'fontweight','bold','fontname','time news roman')
text(6.5,-1,'x','fontsize',14,'fontweight','bold','fontname','time news roman')
text(2,2,'(a,b)','fontsize',14,'fontweight','bold','fontname','time news roman')
set(gca,'xtick',[],'xticklabel',[],'xcolor','w','ytick',[],'yticklabel',[],'ycolor','w')
title('雙開區(qū)間','fontsize',14,'fontweight','bold','fontname','黑體')
export_fig('雙開區(qū)間.png','-r300')
%% 3 左開右閉
figure
set(gcf,'color','w')
scatter(0,0,'o','MarkerEdgeColor','black','MarkerFaceColor','black');
hold on
scatter(1,0,'o','MarkerEdgeColor','black','MarkerFaceColor','w');
hold on
scatter(5,0,'o','MarkerEdgeColor','black','MarkerFaceColor','k');
hold on
annotation('arrow',[0.2 0.8],[0.52 0.52],'LineStyle','-','color',[0 0 0],'HeadStyle','cback3');
hold on
line([1,5],[1,1],'color','k')
hold on
line([1,1],[0,1],'color','k')
hold on
line([5,5],[0,1],'color','k')
axis([-2 8 -10 10])
hold on
for i=1:0.5:4.5
line([i,i+0.5],[0,1],'color','k')
hold on
end
text(0,-1,'O','fontsize',14,'fontweight','bold','fontname','time news roman')
text(1,-1,'a','fontsize',14,'fontweight','bold','fontname','time news roman')
text(5,-1,'b','fontsize',14,'fontweight','bold','fontname','time news roman')
text(6.5,-1,'x','fontsize',14,'fontweight','bold','fontname','time news roman')
text(2,2,'(a,b]','fontsize',14,'fontweight','bold','fontname','time news roman')
set(gca,'xtick',[],'xticklabel',[],'xcolor','w','ytick',[],'yticklabel',[],'ycolor','w')
title('左開右閉','fontsize',14,'fontweight','bold','fontname','黑體')
export_fig('左開右閉.png','-r300')
%% 4 左閉右開
figure
set(gcf,'color','w')
scatter(0,0,'o','MarkerEdgeColor','black','MarkerFaceColor','black');
hold on
scatter(1,0,'o','MarkerEdgeColor','black','MarkerFaceColor','k');
hold on
scatter(5,0,'o','MarkerEdgeColor','black','MarkerFaceColor','w');
hold on
annotation('arrow',[0.2 0.8],[0.52 0.52],'LineStyle','-','color',[0 0 0],'HeadStyle','cback3');
hold on
line([1,5],[1,1],'color','k')
hold on
line([1,1],[0,1],'color','k')
hold on
line([5,5],[0,1],'color','k')
axis([-2 8 -10 10])
hold on
for i=1:0.5:4.5
line([i,i+0.5],[0,1],'color','k')
hold on
end
text(0,-1,'O','fontsize',14,'fontweight','bold','fontname','time news roman')
text(1,-1,'a','fontsize',14,'fontweight','bold','fontname','time news roman')
text(5,-1,'b','fontsize',14,'fontweight','bold','fontname','time news roman')
text(6.5,-1,'x','fontsize',14,'fontweight','bold','fontname','time news roman')
text(2,2,'[a,b)','fontsize',14,'fontweight','bold','fontname','time news roman')
set(gca,'xtick',[],'xticklabel',[],'xcolor','w','ytick',[],'yticklabel',[],'ycolor','w')
title('左閉右開','fontsize',14,'fontweight','bold','fontname','黑體')
export_fig('左閉右開.png','-r300')
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機房具備T級流量清洗系統(tǒng)配攻擊溯源,準確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級服務(wù)器適合批量采購,新人活動首月15元起,快前往官網(wǎng)查看詳情吧
當前文章:MATLAB怎樣畫出高數(shù)課本上的的這些區(qū)間示意圖-創(chuàng)新互聯(lián)
轉(zhuǎn)載來源:http://jinyejixie.com/article48/dioihp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、網(wǎng)頁設(shè)計公司、Google、品牌網(wǎng)站設(shè)計、服務(wù)器托管、品牌網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容