absolute value of negative real numbers
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
why negative real numbers are not allowed for "abs"? for example abs(-1) gives me 'Subscript indices must either be real positive integers or logicals' error
0 commentaires
Réponse acceptée
KL
le 17 Oct 2017
Probably you've created a variable called abs in the workspace. Try
clear abs
abs(-1)
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays 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!