About 78,000 results
Open links in new tab
  1. matlab - How to convert a string array to a cell array of string ...

    Aug 23, 2012 · Use cellstr(). Simply cellstr (array) should work. It also works in Octave. Alternatively, a more complicated but fun way to look into is mat2cell (array, ones (size (array, …

  2. Matlab: How to convert cell array to string array?

    I have a cell array sized 14676x117 call myCellArray. I want to extract values stored in myCellArray{2:14676,1} in an string array. runnning below script only returns a single string …

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

    Even if you remove the stray spaces, you end up with a cell array of strings that contains each digit separately. Swap the order of num2cell and num2str instead. …

  4. How to search for a string in cell array in MATLAB?

    Nov 9, 2011 · Actually, it should be pointed out that this method doesn't work if you are comparing two arrays of different size (i.e. if instead of 'KU' on the left side, you have an array of strings). …

  5. Converting an cell array into string in MATLAB - Stack Overflow

    Dec 9, 2013 · Also keep in mind that the char function can convert a cell array of strings into a 2D character array by vertically concatenating the strings while padding with white space as …

  6. MATLAB: comparison of cell arrays of string - Stack Overflow

    Jul 12, 2010 · I have two cell arrays of strings, and I want to check if they contain the same strings (they do not have to be in the same order, nor do we know if they are of the same lengths). …

  7. create a cell array of strings matlab - Stack Overflow

    Aug 24, 2015 · Strings are arrays of characters in Matlab. Joining strings like this results in one long string. Aside of that: length, size etc report size in number of elements instead of bytes.

  8. how to convert a cell to string in matlab - Stack Overflow

    Apparently this code tries to concatenate a nested cell array to a string (a cell array containing a matrix of chars which constitute the string like 'banana').

  9. Substrings from a Cell Array in Matlab - Stack Overflow

    Oct 10, 2013 · Also note that in all my suggestions the obtained cell array of substrings cell is converted into an array of strings (a matrix). This is just for the sake of the example; obviously …

  10. Appending string to Matlab array - Stack Overflow

    Aug 29, 2013 · For completeness, one should also mention the new string class introduced in MATLAB R2016b; a container for text data along with a set of functions for easy text …

Refresh