MATLAB: How to use symbols in the answer

symbols

I have this result(using a function):
ans =
45.0000 47.0000 60.0000
I want this:
45.0000° 47.0000' 60.0000''

Best Answer

ans = [45 47 60]
sprintf('%0.4f° %0.4f'' %0.4f"', ans(:))