MATLAB 运行错误

浏览:45140 回答:4
??? Error using ==> mrdivide
Matrix dimensions must agree.
Error in ==> ctipNodes at 39
g1(theta)= sqrt(cos(theta)^2+sin(theta)^2/P1^2); g2(theta)= sqrt(cos(theta)^2+sin(theta)^2/P2^2); theta1=atan(tan(theta)/P1); theta2=atan(tan(theta)/P2); % Constants
邀请回答 我来回答

全部回答

(4)
默认 最新
ANSYSUser1999

赞一个
2012年8月8日
评论 点赞
anjing8811
g1(theta)不可以作为变量名, 在matlab里面,g1(theta)表示维数是theta的数组,所以提示你数组维数错误。 直接把变量名改成g1即可
2012年7月29日
评论 点赞
CAE_LOVER_BEST

严重同意
2012年7月28日
评论 点赞
钱平
矩阵维度不对应,所以运算不对啊,你这个theta是写的矩阵吧
2012年7月27日
评论 点赞

没解决?试试专家一对一服务

换一批
    App下载
    技术邻APP
    工程师必备
    • 项目客服
    • 培训客服
    • 平台客服

    TOP