MATLAB is a multi-paradigm numerical computing environment and proprietary
programming language developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages.Here we are converting an rgb image to grayscale image by using matlab.
CODE: Clc; Clear all; Close all; RGB = imread('apple.jpg'); imshow(RGB); I = rgb2gray(RGB); figure imshow(I); OUTPUT: RGB IMGE:
GRAYSCALE IMAGE:
CONCLUSION:
By using matlab ,we can solve mathematical operations easily.