extract some elemnt from an array

Hi all, How to extract from this Array :
A=[1 2 3 5 6 8 10]
this Array so that the diffrence between the neighbors exceed one :
B=[1 5 8 10]
Thank you!

Answers (0)

This question is closed.

Tags

Asked:

on 11 Jan 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!