how to subtract a number from matrix

8 次查看(过去 30 天)
kyin gab
kyin gab 2013-6-18
Hello,
I have a 8 X 8 matrix, m. I want to subtract 127 from it (ie from each number). I did it like this x = m - 127;
The problem I am getting is that it shows 0 where a number is supposed to be negative.
Is there something I am missing?
Thank you.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by