Saturday, May 31, 2008

Assignment # 4 , Q # 1, 2, 3

Q(1) Find an Octave command to make a matrix of 256 x 1 size
Ans. ones(256,1)
Q(2) Find an Octave command to make a matrix of the integers 0 through 255 in a single row.
Ans. M=[0:1:255]
Q(3). Find an Octave command to make a column of integers 0 through 255.
Ans.M=[0:1:255]' ( transpose of the matrix M in Q 2)

No comments: