below is the problem I am trying to solve in MatLab. Everything works for computation of these matrix, but once I try to replace the variables with numbers I am receiving errors, or the answers are still in fraction form and pi isn't replaces by the number. Instead it still says cos(2*pi) for example. I would appreciate any help with this. Thanks for your time
syms r E G b h t A Ay Iz Iy alpha theta
LambdaQBt=[cos(alpha),sin(alpha),0;-sin(alpha),cos(alpha),0;0,0,1]
LambdaQB=transpose(LambdaQBt)
HQB=[1,0,0;0,1,0;-r*(1-cos(alpha)),r*sin(alpha),1]
HQBt=transpose(HQB)
TQB=(LambdaQBt*HQB)
fuq=[1/(E*A),0,0;0,1/(G*Ay),0;0,0,1/(E*Iz)]
TQBt=(HQBt*LambdaQB)
Product=(TQBt*fuq*TQB)
fBA=int(Product,alpha,0,theta)
r=3 E=200*10^9 G=77*10^9 b=.1 h=.0866 t=.01 Ay=.0049 Iz=(t*(b^3))/12 Iy=0 A=3*b*t
F=[10000;-5000;10000]
vB=fBA*F
댓글 수: 3
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/181085-changing-varibles-in-a-matrix-to-values#comment_269353
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/181085-changing-varibles-in-a-matrix-to-values#comment_269353
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/181085-changing-varibles-in-a-matrix-to-values#comment_600426
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/181085-changing-varibles-in-a-matrix-to-values#comment_600426
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/181085-changing-varibles-in-a-matrix-to-values#comment_600522
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/181085-changing-varibles-in-a-matrix-to-values#comment_600522
댓글을 달려면 로그인하십시오.