help-octave
[Top][All Lists]
Advanced

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

Re: subtract number to matrix


From: Santiago Higuera
Subject: Re: subtract number to matrix
Date: Fri, 7 Sep 2018 19:58:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

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







reply via email to

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