About 185,000 results
Open links in new tab
  1. Formatting Text - MATLAB & Simulink - MathWorks

    To convert data to text and control its format, you can use formatting operators with common conversion functions, such as num2str and sprintf. These operators control notation, …

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

    To return formatted text as a string, specify formatSpec as a string instead of a character vector when you call the sprintf function. Convert data and return the result as a string.

  3. compose - Format data into multiple strings - MATLAB - MathWorks

    This MATLAB function formats data values from the input array, A, using formatting operators specified by formatSpec and returns the resulting text in str.

  4. F-String - File Exchange - MATLAB Central - MathWorks

    May 7, 2024 · It provides a way to interpolate variables and expressions inside a string for formatting. Simply wrap the expressions in curly braces {}, pass the string to f(), and it will …

  5. Characters and Strings - MATLAB & Simulink - MathWorks

    This example shows how to analyze text data with string arrays. It shows how to store, split, and sort text, and how to compute and collect statistics for text in a string array.

  6. string, " " - String array - MATLAB - MathWorks

    You can represent text in MATLAB using string arrays where each element of a string array stores a sequence of characters.

  7. num2str - Convert numbers to character array - MATLAB

    This MATLAB function converts a numeric array into a character array that represents the numbers.

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

    If you apply a text conversion (either %c or %s) to integer values, MATLAB converts values that correspond to valid character codes to characters. Example: '%s' converts [65 66 67] to ABC.

  9. datestr - (Not recommended; use string or char) Convert date and …

    Aug 9, 2025 · This MATLAB function converts the datetime values in the input array t to text representing dates and times.

  10. formattedDisplayText - Capture display output as string - MATLAB

    Capture the table as a string. Use name-value arguments to set the numeric format to bank style, suppress the boldface markup of the column headings, and remove an extra blank line with …