Write a MATLAB program for 3-D multi plot with color 01:40 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); subplo...
Write MATLAB program for 3-D plot 01:33 Type 1 Code: clc; z=peaks(25); figure surf(z); colormap(jet); Output: Type 2 Code: clc; z=peaks(25...
Write a MATLAB program for 2-D multi plot with color 01:29 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' ); ...
Write a MATLAB program for 2-D plot graph with title, legend, label 01:26 Code: clc; x = 0:0.01:2*pi; y = sin(x); z = cos(x); figure plot (x,y,x,z); xlabel ( 'X values' ); ylabel ( ...
Write a MATLAB program for draw 2-D simple plot graph 01:23 Code: clear; clc; t=0:pi/100:2*pi; y=sin(t); plot(t,y); grid on; Output:
Write a Matlab program for Edge Detection- use of Sobel, Prewitt and Roberts Operators 00:33 Code: clear; clc; a = imread( 'd:/matimage/baby.jpg' ); % Read image from graphics file a=rgb2gray(a); % Convert RGB c...
Write a MATLAB program for to extract Red, Green, and Blue Component 00:28 Code: clear; clc; rgb = imread( 'd:/matimage/baby.jpg' ); % Read image from graphics file r=rgb; g=rgb; b=rgb; r(...
Write a MATLAB program for Image Negation 00:19 Code: clear; clc; a = imread( 'd:/matimage/baby.jpg' ); % Read image from graphics file b = 255-a; % conversion from b...
Write a MATLAB program for Color – Dithering 00:17 Code: clear; clc; rgb=imread( 'd:/matimage/nature.jpg' ); imshow(rgb); [X_no_dither,map]= rgb2ind(rgb,8, 'nodithe...
Write a MATLAB program for Deblurring 00:13 Code: clear; clc; I = imread( 'd:/matimage/baby.jpg' ); figure; imshow(I); title( 'Original Image' ); LEN = ...
Write a MATLAB program for image multiply 00:10 Hints : Both images have the same size and class or Second image must be a scalar double. Code: clear; clc; I=imread( 'd...
Write a MATLAB program for image subtraction 00:07 Hints : Both images have the same size and class or Second image must be a scalar double. Code: clear; clc; I=imread( 'd:/m...
Write a MATLAB program for image addition 00:04 Hints : Both image have the same size and class or Second image must be a scalar double. Code: clear; clc; I=imread( 'd:...
Write a MATLAB program for Histogram of original and flipped image 00:01 Code: clear; clc; a = imread( 'd:/matimage/his.jpg' ); % Read image from graphics file b=fliplr(a); subplot(2,2,1),i...
Write a MATLAB program for Histogram Equalization 23:58 Code: clc; clear; I=imread( 'd:/matimage/his.jpg' ); %Black and White image B=histeq(I); subplot(2,2,1),imshow(I),titl...