How to Read Image File or Complex Image File in MATLAB? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 1 Likes Like Report MATLAB is a programming and numeric computing platform used by millions of engineers and scientists to analyze data, develop algorithms, and create models. For Image Reading in MATLAB, we use the image processing toolbox. In this ToolBox, there are many methods such as imread(), imshow() etc. imshow(I) : shows the grayscale image I in a figure.imshow(I,[low high]) : shows the grayscale image I, specifying the display range as a two-element vector.imshow(RGB) : shows the truecolor image RGB in a figure.imshow(BW) : shows the binary image BW in a figure. For 0 pixel will be black and for 1 pixel will be white.imshow(filename) : shows the image stored in the graphics file specified by filename.himage = imshow(___) : returns the image object created by imshow.Example 1: Matlab % MATLAB Simple code for Reading and Displaying Image img = imread('GeeksforGeeks.png'); % This will Create a matrix named img % And store image in form of 3D matrix % in the format of RGB imshow(img) % Displaying the image in new Window Output: Read a Complex Images in MATLAB:For reading a complex image in MATLAB, the real and imaginary parts of the pixel will be stored adjacent to each other. All the coherent systems generate complex data such as Synthetic Aperture Radar images, Ultrasound images, etc. Example 2: Matlab % MATLAB code for read a complex image % For open an image GFG=fopen('GeeksforGeeks.png','r'); % To read an image full_data=fread(GFG,[746*2 3680],'double'); % To close an image fclose(GFG); R_data=full_data(1:2:end,:); I_data=full_data(2:2:end,:); complex_data=complex(R_data,I_data); figure,imagesc(abs(complex_data)); colormap(rgbplot); Output: Complex Data Matrix After Execution: Create Quiz Comment V vaibhavkhating Follow 1 Improve V vaibhavkhating Follow 1 Improve Article Tags : Software Engineering MATLAB image-processing Explore Software Engineering BasicsIntroduction to Software Engineering7 min readSoftware Development Life Cycle (SDLC)8 min readSoftware Quality - Software Engineering5 min readISO/IEC 9126 in Software Engineering4 min readBoehm's Software Quality Model4 min readSoftware Crisis - Software Engineering3 min readSoftware Measurement & MetricesSoftware Measurement and Metrics4 min readPeople Metrics and Process Metrics in Software Engineering7 min readHalsteadâs Software Metrics - Software Engineering10 min readCyclomatic Complexity6 min readFunctional Point (FP) Analysis - Software Engineering8 min readLines of Code (LOC) in Software Engineering4 min readSoftware Development Models & Agile MethodsWaterfall Model - Software Engineering12 min readWhat is Spiral Model in Software Engineering?9 min readPrototyping Model - Software Engineering7 min readIncremental Process Model - Software Engineering6 min readRapid Application Development Model (RAD) - Software Engineering9 min readCoupling and Cohesion - Software Engineering10 min readAgile Software Development - Software Engineering15+ min readSRS & SPMSoftware Requirement Specification (SRS) Format5 min readSoftware Engineering | Quality Characteristics of a good SRS7 min readSoftware Project Management (SPM) - Software Engineering8 min readCOCOMO Model - Software Engineering15+ min readCapability Maturity Model (CMM) - Software Engineering10 min readIntegrating Risk Management in SDLC | Set 18 min readSoftware Maintenance - Software Engineering13 min readTesting & DebuggingWhat is Software Testing?11 min readTypes of Software Testing15+ min readTesting Guidelines - Software Engineering3 min readWhat is Debugging in Software Engineering?11 min readVerification & ValidationVerification and Validation in Software Engineering6 min readRole of Verification and Validation (V&V) in SDLC5 min readRequirements Validation Techniques - Software Engineering8 min readPractice QuestionsTop 50+ Software Engineering Interview Questions and Answers15+ min read Like