資源簡介
matlab坐標平移旋轉源代碼.zip

代碼片段和文件信息
function?Re?=?coordinateRotation(Xoritheta)
%?作者:BaShan
%?郵箱:moveon5@163.com
%?函數名稱:坐標繞點旋轉函數
%?調用格式為:Re?=?coordinateRotation(Xoritheta)
%?X為原始坐標點?(mx2);ori旋轉中心?(1x1);theta為旋轉角,為正順時針方向,為負逆時針方向。
if?nargin?==?3
????theta?=?-?theta;
????xo?=?X(:1);
????yo?=?X(:2);
????tha?=?theta*pi/180;
????x?=?(xo-ori(1))*cos(tha)?-?(yo-ori(2))*sin(tha)?+?ori(1);
????y?=?(xo-ori(1))*sin(tha)?+?(yo-ori(2))*cos(tha)?+?ori(2);
????Re?=?[xy];
else
????disp(‘輸入參數不正確‘);
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????543??2018-03-16?08:54??matlab坐標平移旋轉源代碼\coordinateRotation.m
?????文件?????????615??2018-03-16?08:54??matlab坐標平移旋轉源代碼\coordinateTransformation.m
?????目錄???????????0??2018-03-16?08:58??matlab坐標平移旋轉源代碼\
- 上一篇:MATLABR2016b破解文件
- 下一篇:用matlab打造自己的注冊機.zip
評論
共有 條評論