Have you tryed A-1?

El 07/09/18 a las 19:53, shivax escribiÃ³:

> hi,

> i want to subtract scalar to matrix(x,y)

>

> it's possible to do it without use the loop?

>

> example:

>

> a=[3,4,5;5,6,7;6,7,8]

>

> subtract 1

>

> new A =[2,3,4;4,5,6;5,6,7]

>

>

>

>

>

>

>

> --

> Sent from:

http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html>

>

>