title: How to detect a sign change for elements in array in Matlab
body: <p>I have an array of numbers and the numbers change sign. I would like to find the index that there is sign change. How do I do that in Matlab? Is there any shortcut?</p>