導航:首頁 > 五金知識 > matlab的mpt工具箱

matlab的mpt工具箱

發布時間:2022-03-18 19:21:47

㈠ 求2014a版的matlab中MPT工具箱

留個郵箱,我給你發到郵箱里邊去。

㈡ matlab中生成voronoi圖時,能否設定一個邊界使得voronoi頂點不出現無窮遠點

下個mpt工具箱
裡面的_voronoi可以實現你的要求

MPT_VORONOI Computes the voronoi diagram via mpLP

[Pn]=mpt_voronoi(points,Options)

---------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------
The voronoi diagram is a partition of the state space; For a given set of
points pj, each region Pn(j) is defined as
Pn(j)={x \in R^n | d(x,pj)<=d(x,pi), \forall i \neq j}

---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
points - Optional input:
Matrix p times nx of points: nx is state space dimension and
p is the number of points
The entry is graphical in 2D if no parameters are passed.
Options.pbound - A "bounding polytope". If provided, the voronoi cells will
be bounded by this polytope. If not provided, the cells will
be bounded by a hypercube as big as 1.5x the maximum
coordinate of any of the seed points
Options.plot - If set to 1, plots the voronoi diagram (0 is default)
Options.sortcells - If set to 1, resulting Voronoi partition will be ordered
in a way such that Pn(i) corresponds to seed point i.
(Default is 1)

㈢ 請問怎麼用matlab畫voronoi圖,能否提供mpt_voronoi工具箱

㈣ MATLAB的MPT工具箱如何安裝,按照官網教程總是出錯

matlab的工具箱安裝其實很簡單, 說白了就是設置一個路徑讓Matlab能找到工具箱裡面的東西
方法是:
下載版工具箱
解壓縮到一權個目錄(任意的,隨便你放哪裡)
在File -> Set Path 裡面把第2步的那個目錄加到系統路徑裡面, 第二個按鍵 Add with Subfolders (見下圖)
回到matlab命令行: 輸入DemoPSOBehavior 不出錯就成功了!

㈤ matlab中生成voronoi圖時,能否設定一個邊界使得voronoi頂點不出現無窮遠點

下個mpt工具箱
裡面的mpt_voronoi可以實現你的要求

MPT_VORONOI Computes the voronoi diagram via mpLP

[Pn]=mpt_voronoi(points,Options)

---------------------------------------------------------------------------
DESCRIPTION
---------------------------------------------------------------------------
The voronoi diagram is a partition of the state space; For a given set of
points pj, each region Pn(j) is defined as
Pn(j)={x \in R^n | d(x,pj)<=d(x,pi), \forall i \neq j}

---------------------------------------------------------------------------
INPUT
---------------------------------------------------------------------------
points - Optional input:
Matrix p times nx of points: nx is state space dimension and
p is the number of points
The entry is graphical in 2D if no parameters are passed.
Options.pbound - A "bounding polytope". If provided, the voronoi cells will
be bounded by this polytope. If not provided, the cells will
be bounded by a hypercube as big as 1.5x the maximum
coordinate of any of the seed points
Options.plot - If set to 1, plots the voronoi diagram (0 is default)
Options.sortcells - If set to 1, resulting Voronoi partition will be ordered
in a way such that Pn(i) corresponds to seed point i.
(Default is 1)

㈥ 如何將matlab里mpt

matlab的工具箱安裝其實很簡單,說白了就是設置一個路徑讓Matlab能找到工具箱裡面的東西方法是:下載工具箱解壓縮到一個目錄(任意的,隨便你放哪裡)在File->SetPath裡面把第2步的那個目錄加到系統路徑裡面,第二個按鍵AddwithSubfolders(見下圖)回到matlab命令行:輸入DemoPSOBehavior不出錯就成功了!

㈦ 用matlab mpt工具箱生成受限的voronoi圖。請問該怎麼得到各個頂點坐標呢(包括voronoi邊與邊界的交點)

extreme這個函數就可以得到頂點坐標。
給你個代碼:
function irPoly = getIrreg(m,s)
%GETIRREGULAR Summary of this function goes here
% get irregular pixels
% the same begin & end
% clockwise order
% m - regular size
% S - low/high resolution

% get limit voronoi
x = gallery('uniformdata', [(m*s)^2 1], 0);
y = gallery('uniformdata', [(m*s)^2 1], 1);
vOut = [0,0; 0,m; m,m; m,0];
P = polytope(vOut);
Options.pbound = P;
% Options.plot = 1;
Pn = mpt_voronoi(m*[x,y],Options);

% split each polygon
for iPoly = 1:length(Pn)
thisPoly = extreme(Pn(iPoly));
% limited in [0,m]
thisPoly(thisPoly>m) = m;
thisPoly(thisPoly<0) = 0;
% make points in order
k = convhull(thisPoly(:,1), thisPoly(:,2));
% make clockwise
[pX,pY] = poly2cw(thisPoly(k,1),thisPoly(k,2));
irPoly{iPoly} = [pX,pY];
end%for iPoly

end%function

㈧ 用matlab畫有邊界的voronoi圖,怎麼畫

估計你是剛剛載入吧,提示說MATLAB找不到路徑,我當初載入神經網路的時候,和你的處境一樣,我關了MATLAB,吃完飯一用,神奇的好了。望採納。

㈨ Matlab的MPT工具箱

^extreme這個函數就可以得到頂點坐標。 給你個代碼: function irPoly = getIrreg(m,s) %GETIRREGULAR Summary of this function goes here % get irregular pixels % the same begin & end % clockwise order % m - regular size % S - low/high resolution % get limit voronoi x = gallery('uniformdata', [(m*s)^2 1], 0); y = gallery('uniformdata', [(m*s)^2 1], 1); vOut = [0,0; 0,m; m,m; m,0]; P = polytope(vOut); Options.pbound = P; % Options.plot = 1; Pn = mpt_voronoi(m*[x,y],Options); % split each polygon for iPoly = 1:length(Pn) thisPoly = extreme(Pn(iPoly)); % limited in [0,m] thisPoly(thisPoly>m) = m; thisPoly(thisPoly<0) = 0; % make points in order k = convhull(thisPoly(:,1), thisPoly(:,2)); % make clockwise [pX,pY] = poly2cw(thisPoly(k,1),thisPoly(k,2)); irPoly{iPoly} = [pX,pY]; end%for iPoly end%function

閱讀全文

與matlab的mpt工具箱相關的資料

熱點內容
破碎機軸承怎麼安裝 瀏覽:580
商品檢驗有哪些儀器 瀏覽:920
五金件檢驗項目 瀏覽:308
中央空調系統自動加葯裝置寧波廠家 瀏覽:209
用溴和苯製取溴苯的實驗裝置 瀏覽:444
浮動軸承怎麼拆卸 瀏覽:598
虛擬測試振動與控制實驗裝置 瀏覽:227
日產騏達儀表怎麼用 瀏覽:433
熱水器2個閥門怎麼打開 瀏覽:106
斯皓a5怎麼更改儀表盤 瀏覽:367
龍華鍵盤設備供應商哪裡有 瀏覽:768
金堂光學儀器怎麼樣 瀏覽:316
天然氣閥門是向下的嗎 瀏覽:6
機械行業預提工資怎麼做分錄 瀏覽:597
車載cc怎麼連接液晶儀表 瀏覽:163
matlab頻域分析工具箱 瀏覽:411
博世電動工具命名規則 瀏覽:673
華北路五金機電城幾點關門 瀏覽:851
減隔震裝置設計注意事項 瀏覽:482
電能質量檢測裝置接哪 瀏覽:364