compl.m
来自「Index to gray conversion in matlab」· M 代码 · 共 13 行
M
13 行
close all %closes all windows
clear all %clears all variables from workspace
clc %clear command window
f=zeros(10,10); %10x10 matrix of zeros
f(3:6,3:6)=1; %Asiign 1 in 3:6 location
comp=imcomplement(f);
subplot(2,2,1),imshow(f),title('Original image')
subplot(2,2,2),imshow(comp),title('Complemented image')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?