About 142,000 results
Open links in new tab
  1. matlab - switch case: go to 'otherwise' from within another case ...

    Jul 16, 2021 · Is it possible to go from within a case in switch to another case based on a condition? Here is an example:

  2. switch-case with multiple matches in matlab for code generation

    Jul 27, 2015 · I think Matlab Coder is really limited so you have to change your code in order to make it work. Instead of the switch statement, you can use the if statement, it should work. I …

  3. Programmatically get valid switch/case values - Stack Overflow

    Jun 26, 2013 · 5 When MATLAB scans through cases in a switch/case block, does it remember the values that it skips, and is it possible to access that list? I have a few functions with long …

  4. Matlab Switch-case - Stack Overflow

    Apr 27, 2012 · Further, ischar is a matlab function, but you are not using it the right way. You must use it as ischar(cA(x)) for example, will then evaluate to true if cA(x) is a string or snippet of …

  5. matlab - Non-breaking switch statements - Stack Overflow

    May 24, 2012 · The MATLAB switch statement unfortunately does not provide the flexibility of fall-through logic, so you won't be able to use it in this case. You could replace the switch with …

  6. Use of switch with multiple options cases in MATLAB

    Use of switch with multiple options cases in MATLAB Asked 11 years, 10 months ago Modified 7 years, 6 months ago Viewed 10k times

  7. Compare Strings in a Switch Statement / Matlab - Stack Overflow

    Apr 22, 2015 · For a cell array case_expression, at least one of the elements of the cell array matches switch_expression, as defined above for numbers, strings, and objects. When a case …

  8. matlab - Switch statement for range of sequential numbers - Stack …

    Oct 19, 2014 · 1 Use if-else statement. Don't use switch statement. Switch is for one value (meaning if marks is equal to 80). You perform different statements for different value of …

  9. Switch case: how to do case insensitive string check in matlab

    Jul 25, 2017 · Switch case: how to do case insensitive string check in matlab Asked 8 years, 5 months ago Modified 8 years, 5 months ago Viewed 2k times

  10. matlab - How to change if else to switch case - Stack Overflow

    Jun 22, 2017 · How to change if else to switch case Asked 8 years, 6 months ago Modified 8 years, 6 months ago Viewed 174 times