Q 4. On Octave find a command to make a 256 x 256 matrix with the rows, all the same, equal to the numbers 0 to 255.
Ans. ones(256,1) * [0:1:255]
Q5. On Octave find a command to make a 256 x 256 matrix with the columns, all the same, equal to the numbers 0 to 255.
Ans.[ ones(256,1) * [0:1:255]]'
Q 6. On Octave find a command to make a 256 x 256 matrix of all zeros.
Ans. zeros(256)
Q(7)On Octave find a command to make a 256 x 256 matrix of all ones.
Ans. ones(256)
Q(8).On Octave find a command to make a 256 x 256 matrix of the value 128.
Ans. 128 * ones(256)
Q(9) same as Q 6
Saturday, May 31, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment