資源簡介
在MATLAB中調用,兩個多面體輸入形式可以是各自的頂點豎向量集合,也可以是MATLAB規定的線性規劃條件形式,輸出為重疊體各個頂點的豎向量集合,而且線性規劃形式和頂點集合形式可以通過附帶的程序相互轉化。此程序用來MATLAB建模中判斷兩個空間體是否重疊,重疊體積的計算,comsol 的導入和仿真
代碼片段和文件信息
function?[AbAeqbeq]=addBounds(A0b0Aeq0beq0lbub)
%addBounds?-?given?a?sextuplet?{A?b?Aeq?beq?lb?ub}?of?matrices?and?vectors?
%of?the?kind?used?by?the?Optimization?Toolbox?to?express?linear
%constraints?the?routine?will?convert?the?sextuplet?to?a?quadruplet?{A?b
%Aeq?beq}.?
%
%??????[AbAeqbeq]=addBounds(AbAeqbeqlbub)
%
%In?other?words?it?will?re-write?the?bounds?given?by?vectors?lb?ub?as?equalities
%and?inequalities?C*x<=c?D*x=d?and?append?these?as?new?rows?to?the?matrices
%A?b?Aeq?beq.
%
%
%EXAMPLE:
%
%???>>?[AbAeqbeq]=addBounds([1?1?1]1[][][0;0;1][1;1;1])
%?
%?????????A?=
%?
%??????????????1?????1?????1
%?????????????-1?????0?????0
%??????????????0????-1?????0
%??????????????1?????0?????0
%??????????????0?????1?????0
%?
%?
%?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????2543??2017-10-04?18:19??addBounds.m
?????文件????????4011??2017-10-04?18:19??intersectionHull.m
?????文件???????15372??2017-10-04?18:19??lcon2vert.m
?????文件????????1242??2017-10-04?18:19??qlcon2vert.m
?????文件????????5952??2017-10-04?18:19??separateBounds.m
?????文件????????5424??2017-10-04?18:19??unionHull.m
?????文件????????5773??2017-10-04?18:19??vert2lcon.m
?????文件????????1313??2017-10-04?18:19??license.txt
- 上一篇:無線信道抗衰落仿真
- 下一篇:RSA加密MATLAB程序
評論
共有 條評論