help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

subtract number to matrix


From: shivax
Subject: subtract number to matrix
Date: Fri, 7 Sep 2018 12:53:47 -0500 (CDT)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]