📄 13-04.txt
字号:
% the example of functions csvread and csvwrite
I_matlab = imread('D:\matlab.bmp'); % read in the image
I_matlab = rgb2gray(I_matlab); % convert the image to gray image
figure,subplot(1,2,1),imshow(I_matlab); % show the image
csvwrite('D:\matlab.txt',I_matlab); % write the data into a text file
sub_matlab = csvread('D:\matlab.txt',70,70);% read in part of the data
sub_matlab = uint8(sub_matlab); % convert the data to uint8
subplot(1,2,2),imshow(sub_matlab); % show the new image
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -