Separate the positive values from the negative values
Afficher commentaires plus anciens
I have the following
X=[1 - 3 5 -8 4 9 -6 -3]
I want to separate the polarity ( positive values from the negative values) like this
Xp=[1 5 4 9]
Xn=[-3 -8 -6 -3]
then flip the negative values to positive values
like
Xn=[3 8 6 3]
then pass the values as a two-step
like
first, pass the positive step and the second pass the negative steps
NOTE : general methods
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Signal Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!