Two vectors different from each other at least at two points
1 view (last 30 days)
Show older comments
asim nadeem on 6 Oct 2018
I want to compare two vectors and check whether they are different at least at two coordinates.
jonas on 6 Oct 2018
Edited: jonas on 6 Oct 2018
Will output 1 if they differ at two or more indices. You may want to set a tolerance if they are floating point numbers.
More Answers (0)
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!