This is cheaper: rand(4,4) - 5*I because 5I is a special type that doesn't store all elements.
2015-02-01 11:03 GMT-05:00 paul analyst <[email protected]>: > I have somethink like this : > > rand(4,4).-eye(4,4)*5 > > Qestion : how to simpler subtracted from the diagonal value(5) , > Without multiplying matrices .... I have great and I have to simplify the > code. > > Paul >
