필터 지우기
필터 지우기

Replace the symbolic with values ?

조회 수: 4 (최근 30일)
Mohammed kandeel
Mohammed kandeel 2018년 4월 26일
댓글: Walter Roberson 2018년 4월 26일
Hello All i have program with the following
syms O1 L1; T1 = [cos(O1),0,sin(O1),0;sin(O1),0,-cos(O1),0;0,1,0,L1;0,0,0,1];
i need to run the program with the values L1=1; O1=0;
I have program to 5_DOF robotics arm and i need to check it with values so please help. thanks
  댓글 수: 1
Walter Roberson
Walter Roberson 2018년 4월 26일
Duplicates https://www.mathworks.com/matlabcentral/answers/397576-replace-the-symbol-with-value

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2018년 4월 26일
The easiest way is to define the values before defining ‘T1’:
syms O1 L1
L1 = 1;
O1 = 0;
T1 = [cos(O1),0,sin(O1),0;sin(O1),0,-cos(O1),0;0,1,0,L1;0,0,0,1];
They will substitute automatically. If you want to substitute them after defining ‘T1’, use the subs function.

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by