Friday, 8 July 2016

MCA CBCS Regulation and Syllabus 2016-2017 onwards (Madurai Kamaraj University)

MADURAI KAMARAJ UNIVERSITY
MADURAI – 21

MCA
(Semester)

Choice Based Credit System
REGULATIONS AND SYLLABUS
2016-2017 onwards



M.Sc. IT CBCS Regulation and Syllabus 2016-2017 onwards (Madurai Kamaraj University)

MADURAI KAMARAJ UNIVERSITY
MADURAI – 21

M.Sc. Information Technology
(Semester)

Choice Based Credit System
REGULATIONS AND SYLLABUS
2016-2017 onwards



M.Sc. Computer Science CBCS Regulation and Syllabus 2016-2017 onwards (Madurai Kamaraj University)

MADURAI KAMARAJ UNIVERSITY
MADURAI – 21

M.Sc Computer Science
(Semester)

Choice Based Credit System
REGULATIONS AND SYLLABUS
2016-2017 onwards



BCA CBCS Regulation and Syllabus 2016-2017 onwards (Madurai Kamaraj University)

MADURAI KAMARAJ UNIVERSITY
MADURAI – 21

BCA
(Semester)

Choice Based Credit System
REGULATIONS AND SYLLABUS
2016-2017 onwards



B.Sc. IT CBCS Regulation and Syllabus 2016-2017 onwards (Madurai Kamaraj University)


MADURAI KAMARAJ UNIVERSITY
MADURAI – 21

B.Sc Information Technology
(Semester)

Choice Based Credit System
REGULATIONS AND SYLLABUS
2016-2017 onwards



B.Sc. Computer Science CBCS Regulation and Syllabus 2016-2017 onwards (Madurai Kamaraj University)


MADURAI KAMARAJ UNIVERSITY
MADURAI – 21

B.Sc Computer Science
(Semester)

Choice Based Credit SystemREGULATIONS AND SYLLABUS2016-2017 onwards


Thursday, 7 July 2016

Write a MATLAB program for 3-D multi plot with color



Code:
clear;
clc;
t = 0:pi/10:2*pi;
[X,Y,Z] = cylinder(4*cos(t));
subplot(2,2,1); mesh(X);
subplot(2,2,2); mesh(Y);
subplot(2,2,3); mesh(Z);
subplot(2,2,4); mesh(X,Y,Z);


Output:


Write MATLAB program for 3-D plot

Type 1

Code:

clc;
z=peaks(25);
figure
surf(z);
colormap(jet);


Output:





Type 2

Code:

clc;
z=peaks(25);
figure
colormap(jet);
subplot(2,2,1), mesh(z)
subplot(2,2,2), surf(z)
subplot(2,2,3),pcolor(z)
subplot(2,2,4), contour(z)


Output:




Write a MATLAB program for 2-D multi plot with color


Code:

clear;
clc;
x = 0:pi/100:2*pi;
y = sin(x);
y2 = sin(x-.25);
y3 = sin(x-.5);
subplot(2,2,1);plot(y,'b');
subplot(2,2,2);plot(y2,'r');
subplot(2,2,3);plot(y2,'g');
subplot(2,2,4);plot(x,y,x,y2,x,y3);


Output:




Write a MATLAB program for 2-D plot graph with title, legend, label



Code:

clc;
x = 0:0.01:2*pi;
y = sin(x);
z = cos(x);
figure
plot (x,y,x,z);
xlabel ('X values');
ylabel ('Y values');
title ('Sample Plot');
legend ('x data','y data');
gridon;


Output:


Write a MATLAB program for draw 2-D simple plot graph


Code:

clear;
clc;
t=0:pi/100:2*pi;
y=sin(t);
plot(t,y);
gridon;


Output:


Write a Matlab program for Edge Detection- use of Sobel, Prewitt and Roberts Operators


Code:

clear;
clc;
a = imread('d:/matimage/baby.jpg'); % Read image from graphics file
a=rgb2gray(a); % Convert RGB color image or color map to grayscale
b=edge(a,'roberts'); % Find edges in grayscale image using Robert operator
c=edge(a,'sobel'); % Find edges in grayscale image using sobel operator
d=edge(a,'prewitt'); % Find edges in grayscale image using prewitt operator
subplot(2,2,1),imshow(a),title('Original Image');
subplot(2,2,2),imshow(b),title('Roberts');
subplot(2,2,3),imshow(c),title('Sobel');
subplot(2,2,4),imshow(d),title('Prewitt');

Output:



Write a MATLAB program for to extract Red, Green, and Blue Component


Code:

clear;
clc;
rgb = imread('d:/matimage/baby.jpg'); % Read image from graphics file
r=rgb;
g=rgb;
b=rgb;
r( : , : , 2 )=0;
r( : , : , 2 )=0;
b( : , : , 1 )=0;
b( : , : , 3 )=0;
g( : , : , 1 )=0;
g( : , : , 2 )=0;
subplot(2,2,1),imshow(rgb),title('original image');
subplot(2,2,2),imshow(r),title('red component');
subplot(2,2,3),imshow(g),title('green component');
subplot(2,2,4),imshow(b),title('blue component');


Output:

Write a MATLAB program for Image Negation


Code:

clear;
clc;
a = imread('d:/matimage/baby.jpg'); % Read image from graphics file
b = 255-a; % conversion from black to white and vice-versa (black =0 and white = 255)
subplot(2,1,1), %Create axes in tiled positions
imshow(a), % displays the original image.
title('original image'); % Add title to current axes
subplot(2,1,2), %Create axes in tiled positions.
imshow(b), % displays the negative of original image.
title('negative of original image'); % Add title to current axes


Output:



Write a MATLAB program for Color – Dithering


Code:

clear;
clc;
rgb=imread('d:/matimage/nature.jpg');
imshow(rgb);
[X_no_dither,map]= rgb2ind(rgb,8,'nodither');
figure, imshow(X_no_dither,map);
[X_dither,map]=rgb2ind(rgb,8,'dither');
figure, imshow(X_dither,map);


Output:



Write a MATLAB program for Deblurring


Code:

clear;
clc;
I = imread('d:/matimage/baby.jpg');
figure; imshow(I);  title('Original Image');
LEN = 31;
THETA = 11;
PSF = fspecial('motion',LEN,THETA); % create PSF
Blurred = imfilter(I,PSF,'circular','conv');
figure; imshow(Blurred); title('Blurred Image');


Output:


Write a MATLAB program for image multiply


Hints: Both images have the same size and class or Second image must be a scalar double.

Code:

clear;
clc;
I=imread('d:/matimage/arithmetic/baby1.jpg');
J=immultiply(I,2.2);
imshow(I);
figure,imshow(J);


Output: