Write a function which inputs a vector v and outputs a vector with the indices i which represent a sign change in v.
Write a function which inputs a vector v and outputs a vector with the indices i which represent a sign change in v.
One suggestion is to write conditions on the vector and some kind of shifted version of itself.
please help me writing this function code
2 Comments
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/506486-writing-condition-function-with-vector#comment_799710
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/506486-writing-condition-function-with-vector#comment_799710
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/506486-writing-condition-function-with-vector#comment_799734
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/506486-writing-condition-function-with-vector#comment_799734
Sign in to comment.