About 50 results
Open links in new tab
  1. exp - Exponential - MATLAB - MathWorks

    Numeric Representation of e Calculate the exponential of 1, which is Euler's number, e.

  2. format - Set output display format - MATLAB - MathWorks

    A = 5.123456789; for k = 1:10 disp(A) A = A*10; end 5.1235e+000 51.2346e+000 512.3457e+000 5.1235e+003 51.2346e+003 512.3457e+003 5.1235e+006 51.2346e+006 512.3457e+006 …

  3. Why Euler's number e = 2.71828... is not a built-in constant in MATLAB?

    Jun 17, 2020 · I understand that we can produce that number in MATLAB by evaluating exp(1), or possibly using exp(sym(1)) for the exact representation. But e is a very common constant in …

  4. Formatting Text - MATLAB & Simulink - MathWorks

    For the %g operator, the precision indicates the number of significant digits to display. For the %f, %e, and %E operators, the precision indicates how many digits to display to the right of the decimal point.

  5. fprintf - Write data to text file - MATLAB - MathWorks

    Get Number of Bytes Written to File Write data to a file and return the number of bytes written. Write an array of data, A, to a file and get the number of bytes that fprintf writes.

  6. Display Format for Numeric Values - MATLAB & Simulink - MathWorks

    Display Format for Numeric Values By default, MATLAB ® uses a 5-digit short format to display numbers. For example,

  7. digits - Change variable precision used - MATLAB - MathWorks

    This MATLAB function sets the precision of symbolic computations involving variable-precision arithmetic, such as vpa, to d significant decimal digits.

  8. Floating-Point Numbers - MATLAB & Simulink - MathWorks

    Floating-point data types allow for a varying number of digits after the decimal point, while fixed-point data types have a specific number of digits reserved before and after the decimal point. So, floating …

  9. randn - Normally distributed random numbers - MATLAB

    The underlying number generator for randn is a pseudorandom number generator, which creates a deterministic sequence of numbers that appear random. These numbers are predictable if the seed …

  10. sprintf - Format data into string or character vector - MATLAB

    The format specifier has a corresponding C format specifier, for example, %e or %E. The n$ position identifier for reordering input values Using subtypes to print a floating-point number as its octal, …