Homework of the first week: Matlab realizes that you can select a photo of yourself in the folder, display it in a form, and mark it with "XXX image".

Homework of the first week

Topic:
Choose a photo of yourself in the folder, display it in a window, and mark "XXX's image".

Implementation code:

clc,clear all
image = imread('D:/1.jpg');  % 读取文件夹中的文件
figure(1);  % 创建一个窗口
imshow(image)  % 展示对象
title('xxx的图像');  % 命名

Result display:
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_44921056/article/details/114981220