Problem with simplify function used with matrices
Ältere Kommentare anzeigen
Hello, I am trying to simplify this matrix, but I can't see any changes. I have tried with the same function many times, yet it won't help me obtain a simplified version of the matrix:
clear all;
syms t1 d2 a3 t3
A10 = [cos(t1), -sin(t1), 0, 0;
sin(t1), cos(t1), 0, 0;
0, 0, 1, 0;
0, 0, 0, 1];
A21 = [1, 0, 0, 0;
0, 0, 1, 0;
0, -1, 0, d2;
0, 0, 0, 1];
A32 = [cos(t3), 0, sin(t3), a3*cos(t3);
sin(t3), 0, -cos(t3), a3*sin(t3);
0, 1, 0, 0;
0, 0, 0, 1];
A30 = A10*A21*A32
A30s = simplify(A30)
This is my output:
A30 =
[cos(t1)*cos(t3), -sin(t1), cos(t1)*sin(t3), a3*cos(t1)*cos(t3)]
[cos(t3)*sin(t1), cos(t1), sin(t1)*sin(t3), a3*cos(t3)*sin(t1)]
[ -sin(t3), 0, cos(t3), d2 - a3*sin(t3)]
[ 0, 0, 0, 1]
A30s =
[cos(t1)*cos(t3), -sin(t1), cos(t1)*sin(t3), a3*cos(t1)*cos(t3)]
[cos(t3)*sin(t1), cos(t1), sin(t1)*sin(t3), a3*cos(t3)*sin(t1)]
[ -sin(t3), 0, cos(t3), d2 - a3*sin(t3)]
[ 0, 0, 0, 1]
As you can see the matrices look exactly the same.
2 Kommentare
John D'Errico
am 30 Nov. 2020
And why is it you think something simpler would be appropriate? What did you expect to see that is different from what you got?
Giulia Di Fede
am 30 Nov. 2020
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!