How to remove negative value at the out put..
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Please help me friends.. how to get rid of this negative values..?
0 commentaires
Réponses (1)
Image Analyst
le 24 Avr 2015
What does "get rid of" mean? Do yoiu want to change the limits of the y axis? Do you just want to get new data values by subtracting the min from all your data:
y = y - min(y);
Do you just want to remove negative values from the data:
y(y<0) = [];
5 commentaires
Jakey Wang
le 20 Mar 2020
The second code is actually so good. I used it in my coursework. Thank you!!
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!