PO_matlab
mysph2cartvec.m File Reference

Converts a vector field from spherical to Cartesian coordinates. More...

Functions

function mysph2cartvec (in Ar, in Atheta, in Aphi, in theta, in phi)

Detailed Description

Converts a vector field from spherical to Cartesian coordinates.

This function transforms vector components (Ar, Atheta, Aphi) expressed in spherical coordinates into Cartesian components (Ax, Ay, Az), given angular inputs.

Parameters
ArRadial component of the vector field
AthetaElevation (theta) component of the vector field
AphiAzimuthal (phi) component of the vector field
thetaElevation angle(s) [rad]
phiAzimuthal angle(s) [rad]
Return values
AxX component of the vector field
AyY component of the vector field
AzZ component of the vector field

Function Documentation

◆ mysph2cartvec()

function mysph2cartvec ( in Ar,
in Atheta,
in Aphi,
in theta,
in phi )