Wednesday, 29 February 2012

LAB 2 : Matlab Basic

In todays's lab (28/2/2012), we have learned about scalar and vector using Matlab

Scalar : a= 5
Vector : b= [1 2 3]

[col , row] = size



1 : Given an image A as shown below



Write the location of the pixel 4 and 10 using Matlab

Answer:


Pixel 4 =  Z (1,3) ; Z (2,3) ; Z (3,2)
Pixel 10 = Z(1,6) ; Z (3,5)


2: Simple Operation On Matric





3: Given an image C as shown




Apply the operation:-

  • Get the Min value

  • Get Total value

  • Get Average value

  • Get Max value

No comments:

Post a Comment