enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. string, " " - String array - MATLAB - MathWorks

    www.mathworks.com/help/matlab/ref/string.html

    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, such as "yes" and "no". A string array that has only one element is also called a string scalar.

  3. Create String Arrays - MATLAB & Simulink - MathWorks

    www.mathworks.com/help/matlab/matlab_prog/create-string-arrays.html

    Create an empty character vector using single quotes. Note that the size of chr is 0-by-0. chr = ''. chr =. 0x0 empty char array. Create a string array where every element is an empty string. You can preallocate a string array with the strings function. str = strings(2,3) str = 2x3 string.

  4. Characters and Strings - MATLAB & Simulink - MathWorks

    www.mathworks.com/help/matlab/characters-and-strings.html

    Characters and Strings. Character arrays and string arrays provide storage for text data in MATLAB ®. A character array is a sequence of characters, just as a numeric array is a sequence of numbers. A typical use is to store short pieces of text as character vectors, such as c = 'Hello World'. A string array is a container for pieces of text.

  5. matlab - Create an array of strings - Stack Overflow

    stackoverflow.com/questions/7100841

    From what I read in the official Matlab docs, this container resembles a cell-array and most of the array-related functions should work out of the box. For your case, new solution would be: a=repmat('Some text', 10, 1); This solution resembles a Rich C's solution applied to string array.

  6. Text in String and Character Arrays - MATLAB & Simulink -...

    www.mathworks.com/.../represent-text-with-character-and-string-arrays.html

    Represent Text with String Arrays. You can store any 1-by- n sequence of characters as a string, using the string data type. Enclose text in double quotes to create a string. str = "Hello, world". str =. "Hello, world". Though the text "Hello, world" is 12 characters long, str itself is a 1-by-1 string, or string scalar.

  7. Appending string to Matlab array - Stack Overflow

    stackoverflow.com/questions/2288899

    As noted elsewhere, in MATLAB all strings in an array must be the same length. To have strings of different lengths, use a cell array: Use strcat function to append using one line code without using loop: A = 'food' 'banana' 'orange'. A = 'foods' 'bananas' 'oranges'.

  8. Matlab: convert array of number to array of strings

    stackoverflow.com/questions/12164752

    How can I convert [12 25 34 466 55] to an array of strings ['12' '25' '34' '466' '55']? The conversion functions I know convert that array to one string representing the entire array.

  9. strjoin - Join strings in array - MATLAB - MathWorks

    www.mathworks.com/help/matlab/ref/strjoin.html

    Update code that makes use of strjoin to use join instead. strjoin returns a character vector if the input is a cell array of character vectors and returns a string scalar if the input is a string array. join returns a text scalar of the same type as the input. For example: 'one two three'. {'one two three'} 'one two three'.

  10. extract - Extract substrings from strings - MATLAB - MathWorks

    www.mathworks.com/help/matlab/ref/string.extract.html

    Description. newStr = extract (str,pat) returns any substrings in str that match the pattern specified by pat. If str is a string array or a cell array of character vectors, then the function extracts substrings from each element of str. If pat is an array, then the function matches against multiple patterns. example. newStr = extract (str,pos ...

  11. convertStringsToChars - Convert string arrays to character arrays...

    www.mathworks.com/help/matlab/ref/convertstringstochars.html

    A missing string (displayed as <missing>) to a 0-by-0 character array If A is an empty string array, then B is an empty cell array. An empty array has at least one dimension whose size is 0 .