Problem 2 (1 pt)
Write a matrix function called “cart” that converts spherical coordinates to Cartesian coordinates. The function should take one range object argument containing spherical coordinates in a column of three numbers (ρ, θ, φ). The output should be Cartesian coordinates as a column of three numbers (x, y, z). Test your function with the coordinates (10, π/6, π/2). The conversion formulas are given below.