Select positive values around a certain value
Mostra commenti meno recenti
Hi there,
I want to select a specific string in an array containing positive and negative values.
For example:
A = [-2 1 0.5 -34 4 5 9 3 1 -3 -2 6 -7]
B = 3
I want to select the positive points surrounding A(8) = 3.
So A(5:9).
Best regards and thank you in advance!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!