Table Of Contents

num_to_str

Version:
    Last Modified: March 15, 2017

    Converts the content of numeric arrays to character arrays. Complex numbers are treated as such.

    Syntax

    c = num_to_str(a)
    c = num_to_str(a, precision)
    c = num_to_str(a, format)
    Legacy name: num2str

    Inputs

    a

    Numeric scalar or array of any dimension.

    precision

    Number of significant digits to be used in the output. precision is an integer.

    format

    Format template string. format must use appropriate format specifier syntax. format is a string.

    Outputs

    c

    Character array equivalent to a. If a is an array, c returns each row of a as a string.

    A = [34.333+123456.4i, -38]
    C = num_to_str(A,'%2.1f')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics