if x > array{1} && x < array{2}
You need curly braces instead of round parentheses. array(1) is a {1 x 1} cellm while array{1} is the contents of the first cell.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!