syms g real
a=[sin(g) ,0,cos(g)];
a_unit =[ sin(g)/(abs(cos(g))^2 + abs(sin(g))^2)^(1/2), 0, cos(g)/(abs(cos(g))^2 + abs(sin(g))^2)^(1/2)];
simplify(a_unit)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!