Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Why abs(-5) gives an array and not a single value?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I tried to use abs(-5) but it gives me an array of 107.1957 109.9616 103.5453 109.7126 103.4645 and not 5?
1 Commento
Risposte (1)
Ameer Hamza
il 29 Ott 2020
Modificato: Ameer Hamza
il 29 Ott 2020
Most probably, you have a function handle or function in your MATLAB path with the name abs(). Try following.
First, run
clear abs
and then run your code, if error persist, then run
which abs
If it gives a path to a user-defined file, change its name.
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!