Table Of Contents

deg_to_rad

Version:
    Last Modified: December 12, 2016

    Converts angles in degrees to angles in radians.

    Syntax

    c = deg_to_rad(a)
    Legacy name: deg2rad

    Inputs

    a

    Angles in degrees to be converted. a is a scalar or an array of any dimension.

    Outputs

    c

    Angles in radians. c is a scalar or an array of any dimension of the same size as a. c = a/180*pi.

    A =  -180: 1: 180;
    B = deg_to_rad(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: DAQExpress does not support FPGA devices


    Recently Viewed Topics