Main Content

solidangle

Solid angle of region bounded by azimuth and elevation angles

Since R2021a

    Description

    omega = solidangle(az,el) returns the solid angle omega in steradians for a region of a sphere bounded by the azimuth angles az and the elevation angles el. az and el must have the same number of columns or one of the inputs must be a 2-by-1 column vector.

    example

    Examples

    collapse all

    Compute the solid angle for three regions of a sphere that have the same azimuth limits.

    az = [0;65];
    el = [-15 20 15;5 30 80];
    
    omega = solidangle(az,el)
    omega = 1×3
    
        0.3925    0.1792    0.8236
    
    

    Input Arguments

    collapse all

    Azimuth angles in degrees, specified as a two-row matrix. Each column in az has the form [az1;az2], where az1 and az2 are the azimuth limits of omega created by traveling from az1 to az2 counter-clockwise. az1 and az2 must be between –180 and 180.

    Data Types: double

    Elevation angles in degrees, specified as a two-row matrix. Each column in el has the form [el1;el2], where el1 and el2 are the limits of the elevation sector spanned by omega. el1 and el2 must be between –90 and 90.

    Data Types: double

    Output Arguments

    collapse all

    Solid angle in steradians, returned as a row vector. The output omega depends on the sizes of az and el:

    • If both az and el are matrices, each element of omega is computed for azimuth and elevation angles in the corresponding column of az and el.

    • If az is a column vector and el is a matrix, omega is computed assuming the same azimuth angles for all columns in el.

    • If az is a matrix and el is a column vector, omega is computed assuming the same elevation angles for all columns in az.

    References

    [1] Barton, David K. Radar Equations for Modern Radar. Artech House Radar Series. Norwood, Mass: Artech House, 2013.

    Extended Capabilities

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2021a