About 5,670,000 results
Open links in new tab
  1. input - Request user input - MATLAB - MathWorks

    x = input(prompt) displays the text in prompt and waits for the user to input a value and press the Return key. The user can enter expressions, like pi/4 or rand(3), and can use variables in the …

  2. Prompt user for a text string - MATLAB Answers - MATLAB Central …

    Nov 8, 2015 · ais=input('Give me a letter you would like converted to a number: ', 's') alphabet=[ 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' , 'i' , 'j' , 'k' , 'l' , 'm' , 'n' , 'o' , 'p' , 'q' , 'r' , 's' , 't' , 'u' , 'v' , 'w' , 'x' , 'y' …

  3. 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. The sequences can have different lengths without padding, …

  4. inputdlg - Create dialog box to gather user input - MATLAB

    MATLAB ® stores the input as a cell array of character vectors. Convert a member of the input cell array to a number, using str2num . Create an input dialog box that asks users to enter …

  5. How can I include quotes within a string? - MATLAB Answers

    Dec 28, 2013 · Look up strings in the help and the example shows that you do a double single quote to get a single single quote: var = '<meta property="og:title" content="(\w* …

  6. using string in if statement - MATLAB Answers - MATLAB Central

    Oct 29, 2021 · If you attempt to compare two strings using == and the strings are not the same length, then you will get errors. == can be used for strings only if they are the same length. …

  7. isstring - Determine if input is string array - MATLAB - MathWorks

    Create different arrays, and then determine if they are string arrays. Test a character vector.

  8. Convert Numeric Values to Text - MATLAB &amp; Simulink

    Add Numbers to Strings. The simplest way to combine text and numbers is to use the plus operator (+). This operator automatically converts numeric values to strings when the other …

  9. Characters and Strings - MATLAB &amp; Simulink - MathWorks

    You can create strings using double quotes, such as str = "Greetings friend". To convert data to string arrays, use the string function. For more information, see Text in String and Character …

  10. append - Combine strings - MATLAB - MathWorks

    You can combine string arrays or cell arrays of character vectors, element by element. Also, you can append a single piece of text to the elements of an input array. Create an array of file names.

Refresh