y=[2 -3 4 -1 6]; x=-4; intervalles=abs(x-y).*[-1;1];
Each column of intervalles contains one interval, accessed by indexing intervalles as follows
intervalles(:,k) % get the kth interval
y=[2 -3 4 -1 6]; x=-4; intervalles=abs(x-y).*[-1;1];
Each column of intervalles contains one interval, accessed by indexing intervalles as follows
intervalles(:,k) % get the kth interval
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!