use of modulus in matlab
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hello, i am trying two build a code in which i am using a formula which has difference between two quantities , but sometimes the difference between two can lead to a negative integer and i want to make it positive always as the output (like a modulus functon which when used returns non negative integres)
how can i do this in matlab"??
like can i use as .... X = | X2 -Y2 | ?
2 commentaires
Réponses (1)
fred ssemwogerere
le 3 Fév 2020
Please refer to the matlab documentation in your version of the software and search for: "abs". Alternatively refer to:
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!