国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當(dāng)前位置: 首頁 > news >正文

發(fā)布網(wǎng)站建設(shè)信息百度網(wǎng)站推廣價(jià)格

發(fā)布網(wǎng)站建設(shè)信息,百度網(wǎng)站推廣價(jià)格,柳州建設(shè)網(wǎng)栗園新居,首都醫(yī)科大學(xué)網(wǎng)站建設(shè)MATLAB繪制局部放大圖 1 工具準(zhǔn)備 MATLAB官網(wǎng)-ZoomPlot(Kepeng Qiu. Matlab Central, 2022) 初始數(shù)據(jù)圖繪制完成后,調(diào)用以下代碼: %% 添加局部放大 zp BaseZoom(); zp.plot;1.1 具體繪制步驟 具體繪制步驟如下: 通過鼠標(biāo)左鍵框選作圖區(qū)…

MATLAB繪制局部放大圖

1 工具準(zhǔn)備

MATLAB官網(wǎng)-ZoomPlot(Kepeng Qiu. Matlab Central, 2022)
在這里插入圖片描述
初始數(shù)據(jù)圖繪制完成后,調(diào)用以下代碼:

%% 添加局部放大
zp = BaseZoom();
zp.plot;

1.1 具體繪制步驟

具體繪制步驟如下:

  • 通過鼠標(biāo)左鍵框選作圖區(qū)域;
  • 鼠標(biāo)右鍵確定后,通過鼠標(biāo)左鍵框選需要放大的區(qū)域;
  • 鼠標(biāo)右鍵確定后,完成局部放大圖的繪制。

1.2 子坐標(biāo)系(sub-coordinate system)設(shè)置

子坐標(biāo)系(sub-coordinate system)默認(rèn)設(shè)置:

    % theme of inserted axes (sub-axes)propertiessubAxesBox = 'on'subAxesinsertedLineWidth = 1.2subAxesTickDirection = 'in'subAxesBackgroundColor = 'w'end

例:去除子坐標(biāo)系并設(shè)置線寬為3,具體代碼如下:

    % theme of inserted axes (sub-axes)propertiessubAxesBox = 'off'subAxesinsertedLineWidth = 3subAxesTickDirection = 'in'subAxesBackgroundColor = 'w'end

在這里插入圖片描述

1.3 放大區(qū)域(the zoomed zone)設(shè)置

放大區(qū)域(the zoomed zone)默認(rèn)設(shè)置:

    % theme of the zoomed zone (figures)propertiesrectangleColor = 'k'rectangleFaceColor = 'none'rectangleFaceAlpha = 0rectangleLineStyle = '-'rectangleLineWidth = 1.2rectangleInteractionsAllowed = 'none'end

例:設(shè)置放大區(qū)域線條顏色及線寬為2,具體代碼如下:

    % theme of the zoomed zone (figures)propertiesrectangleColor = 'r'rectangleFaceColor = 'none'rectangleFaceAlpha = 0rectangleLineStyle = '-'rectangleLineWidth = 2rectangleInteractionsAllowed = 'none'end

在這里插入圖片描述

1.4 連接線(the connected lines)設(shè)置

連接線(the connected lines)默認(rèn)設(shè)置:

    % theme of the connected lines (figures)properties% setting of lines between arrowsfigureConnectedLineStyle = ':'figureConnectedLineColor = 'k'figureConnectedLineWidth = 1.2% setting of start arrowfigureConnectedLineStartHeadStyle = 'ellipse' % shape of start arrowfigureConnectedLineStartHeadLength = 3figureConnectedLineStartHeadWidth = 3% setting of end arrowfigureConnectedLineEndHeadStyle = 'cback2' % shape of ending arrowfigureConnectedLineEndHeadLength = 7figureConnectedLineEndHeadWidth = 7end

例:設(shè)置箭頭末端形狀及顏色,具體代碼如下:

    % theme of the connected lines (figures)properties% setting of lines between arrowsfigureConnectedLineStyle = ':'figureConnectedLineColor = 'r'figureConnectedLineWidth = 1.2% setting of start arrowfigureConnectedLineStartHeadStyle = 'ellipse' % shape of start arrowfigureConnectedLineStartHeadLength = 3figureConnectedLineStartHeadWidth = 3% setting of end arrowfigureConnectedLineEndHeadStyle = 'ellipse' % shape of ending arrowfigureConnectedLineEndHeadLength = 7figureConnectedLineEndHeadWidth = 7end

在這里插入圖片描述

2 案例

2.1 案例1:基礎(chǔ)圖形(設(shè)置1個(gè)局部放大區(qū))

成圖如下:
在這里插入圖片描述
MATLAB代碼如下:

clc
clear
close all
%%
addpath(genpath(pwd)) %  basic plotting
x = linspace(-0.1*pi,2*pi, 30);
y = cell(1, 3);
y{1, 1} = 0.4*sinc(x)+0.8;
y{1, 2} = tanh(x);
y{1, 3} = exp(-sinc(x));figure(1);
color_ = [0, 114, 189; 126, 47, 142; 162, 20, 47]/255;
ax = axes('Units', 'normalized');
hold(ax, 'on');
box(ax,'on');
set(ax, 'LineWidth', 1.2, 'TickDir', 'in');
for i = 1:3plot(x, y{1, i}, 'Parent', ax, 'Color', color_(i, :), 'LineWidth', 3)
end
set(gca,'Layer','top','FontSize',14,'Fontname', 'Times New Roman');% add a zoomed zone
zp = BaseZoom();
zp.plot;

2.2 案例2:設(shè)置2個(gè)局部放大區(qū)

成圖如下:
在這里插入圖片描述
MATLAB代碼如下:

clc
clear
close all
%% 
addpath(genpath(pwd)) %  basic plotting
tmp_ = 5;
t1 = 0:pi/20:8*pi;     
t2 = 8*pi:pi/20:16*pi;
y1_ = exp(-t1/tmp_ );
y2_ = exp(-t1/tmp_ ).*sin(tmp_ *t1);
t = [t1, t2];
y1 = [y1_, fliplr(y1_)];
y2 = [y2_, fliplr(y2_)];figure(1);
plot(t, y2, 'Color', 'r', 'LineStyle', '-', 'LineWidth', 1.5) 
hold on
plot(t, y1, 'Color', 'b', 'LineStyle', ':', 'LineWidth', 1.5) 
plot(t, -y1, 'Color', 'b', 'LineStyle', ':','LineWidth', 1.5) 
xlim([min(t), max(t)])
set(gca,'Layer','top','FontSize',14,'Fontname', 'Times New Roman');% add 2 zoomed zones
zp = BaseZoom();
zp.plot;
zp.plot;

參考

http://m.aloenet.com.cn/news/28351.html

相關(guān)文章:

  • 項(xiàng)目營銷策劃方案360優(yōu)化大師官方下載
  • dede可以做視頻網(wǎng)站百度關(guān)鍵詞指數(shù)排行
  • 羅源網(wǎng)站建設(shè)seo搜索引擎優(yōu)化技術(shù)教程
  • iis7 無法添加網(wǎng)站網(wǎng)站優(yōu)化聯(lián)系
  • 云南城市建設(shè)職業(yè)學(xué)院網(wǎng)站軟文推廣渠道
  • 移動(dòng)端的網(wǎng)站怎么做今日全國最新疫情通報(bào)
  • 幾分鐘弄清楚php做網(wǎng)站手機(jī)系統(tǒng)優(yōu)化
  • 昆明網(wǎng)絡(luò)營銷網(wǎng)站怎么提高seo關(guān)鍵詞排名
  • 寶豐網(wǎng)站建設(shè)長春網(wǎng)站建設(shè)
  • 淘寶客網(wǎng)站虛擬主機(jī)盤多多百度網(wǎng)盤搜索引擎
  • 如何管理好一個(gè)網(wǎng)站怎樣才能注冊(cè)自己的網(wǎng)站
  • web網(wǎng)站雙語切換怎么做在線seo短視頻
  • 有關(guān)網(wǎng)站建設(shè)的公眾號(hào)2022最好的百度seo
  • 怎么做網(wǎng)站的步驟網(wǎng)站制作的要點(diǎn)和步驟詳解
  • 網(wǎng)站接入地查詢互聯(lián)網(wǎng)最賺錢的行業(yè)
  • 轉(zhuǎn)轉(zhuǎn)怎么做釣魚網(wǎng)站知名網(wǎng)絡(luò)營銷推廣
  • 桂林手機(jī)網(wǎng)站建設(shè)seo推廣經(jīng)驗(yàn)
  • 購物網(wǎng)站建設(shè)機(jī)構(gòu)網(wǎng)絡(luò)營銷策略分析方法
  • 公文寫作 課程中心網(wǎng)站建設(shè)百度seo怎么優(yōu)化
  • 兼職做網(wǎng)站系統(tǒng)搜索引擎營銷的案例有哪些
  • 給博彩網(wǎng)站做推廣犯法樂云seo官網(wǎng)
  • 衢州市火車站片區(qū)規(guī)劃直通車推廣計(jì)劃方案
  • 網(wǎng)站屏蔽國內(nèi)ip個(gè)人seo外包
  • 南寧營銷型網(wǎng)站一個(gè)公司可以做幾個(gè)百度推廣
  • 快樂彩網(wǎng)站做谷歌在線瀏覽器入口
  • 那些網(wǎng)站做網(wǎng)批百度注冊(cè)公司地址
  • 電子商務(wù)網(wǎng)站建設(shè)與管理試題免費(fèi)網(wǎng)站在線客服軟件
  • B2B行業(yè)門戶網(wǎng)站模板百度關(guān)鍵詞優(yōu)化點(diǎn)擊 教程
  • 網(wǎng)站程序模板下載seo收費(fèi)標(biāo)準(zhǔn)多少
  • 最有效的網(wǎng)站推廣費(fèi)用必應(yīng)搜索引擎網(wǎng)站