About 1,520,000 results
Open links in new tab
  1. strcmp - Compare strings - MATLAB - MathWorks

    You can compare and sort string arrays with relational operators, just as you can with numeric arrays. Use == to determine which elements of two string arrays are equal.

  2. 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). …

  3. Compare Strings in Matlab: A Quick Guide

    The `strcmp` function is the most fundamental method for comparing two strings in MATLAB. This function is case-sensitive and returns `true` (1) if the two strings are identical, and `false` (0) …

  4. Compare Text - MATLAB & Simulink - MathWorks

    You can compare string arrays for equality with the relational operators == and ~=. When you compare string arrays, the output is a logical array that has 1 where the relation is true, and 0 …

  5. Matlab: How do I compare two string arrays and then select out …

    May 8, 2013 · It'll be fixed in a moment. strcmp can compare a string with a cell array of strings, and the output is a logical array indicating which entries match. So long as the entries of …

  6. MATLAB strcmp: Compare Cell Arrays of Strings Effectively

    To compare cell arrays of strings in MATLAB, you can use the built-in function strcmp. This function returns a logical array with the same size as the input arrays, indicating whether the …

    • Reviews: 3.3K
    • Comparing Two String Arrays - MATLAB Answers - MATLAB

      I am trying to compare two string arrays to each other to see if any of the elements in one string array are in the other string array. I assumed the best approach was to use "any" and …

    • Comparing Two Cell Arrays of Strings of Different Sizes in MATLAB

      Apr 26, 2025 · Comparing Two Cell Arrays of Strings: ismember(a,b): It compares the 'a' and 'b' cell arrays and returns a logical array which has 0 and 1 of size same as of cell array 'a'. It …

    • Comparing Two String Arrays - MATLAB Answers - MATLAB

      Nov 19, 2019 · I am trying to compare two string arrays to each other to see if any of the elements in one string array are in the other string array. I assumed the best approach was to use "any" …

    • How to compare two string arrays in MATLAB? – Quick …

      How to compare two string arrays in MATLAB? Use == to determine which elements of two string arrays are equal. Use < to determine which elements of s1 are less than the corresponding …

    • Some results have been removed
    Refresh