absolute value of negative real numbers

12 visualizaciones (últimos 30 días)
Mos_bad
Mos_bad el 17 de Oct. de 2017
Respondida: Mos_bad el 17 de Oct. de 2017
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

Respuesta aceptada

KL
KL el 17 de Oct. de 2017
Probably you've created a variable called abs in the workspace. Try
clear abs
abs(-1)

Más respuestas (1)

Mos_bad
Mos_bad el 17 de Oct. de 2017
it worked. thanks.

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by