absolute value of negative real numbers

9 次查看(过去 30 天)
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

采纳的回答

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

更多回答(1 个)

Mos_bad
Mos_bad 2017-10-17
it worked. thanks.

类别

Help CenterFile Exchange 中查找有关 Waveform Design and Signal Synthesis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by