Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. deaner00

    Switch statement with cell arrays

    Thank you for the reply. An if wouldn't work though. I have a large switch statement with about 20 string case statements. I needed to add in one case statement that encompassed the numbers 3-100, and had to be in the same switch. I ended up figuring it out though. If anyone runs into this...
  2. deaner00

    Switch statement with cell arrays

    I want to use a switch statement with a cell array as the case expression. I know it can be used with few expressions like this: switch lower(method) case {'linear','bilinear'} disp('Method is linear') But I have a fairly lengthy switch statement where one case needs to look for...

Part and Inventory Search