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!

Risposte (0)

Questa domanda è chiusa.

Richiesto:

il 11 Gen 2018

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by