
1条回答 默认 最新
joel_1993 2021-10-25 20:56关注你好,这好办
function [x1, y1] = rot2d(x, y, theta) x1 = cosd(theta)*x + sind(theta)*y; y1 = -sind(theta)*x + cosd(theta)*y; end调用举例
[x,y] = rot2d(1,2,30) x = 1.866025403784439 y = 1.232050807568877有帮助望采纳哟
本回答被题主选为最佳回答 , 对您是否有帮助呢?评论 打赏 举报解决 1无用