Matlab画图(以plot为例) 删除上边框和右边框的方法
简单完整代码如下:
clear;clc;close all;
x = 1:0.01:10;
y = exp(x);
figure(10)
%Start by plotting the axes without the top and right borders using scatter
A = scatter(x,y);
%Then delete the scatter image and keep the axes
delete(A);
hold on;
plot(x,y);
I:
%%%%%
clear;clc;close all;
x = 1:0.01:10;
y = exp(x);
figure(10)
%Start by plotting the axes without the top and right borders using scatter
A = scatter(x,y);
II:
%Then delete the scatter image and keep the axes
delete(A);
III:
hold on;
plot(x,y);