GUI常用对象介绍2

时间:2023-03-09 02:44:30
GUI常用对象介绍2
 %示意line对象的用法
hf=figure;
hl=plot([:]); %示意line对象的属性
get(hl) %设置line的颜色
set(hl,'Color','r'); %设置每个点形状
set(hl,'Marker','p'); %设置颜色
set(hl,'MarkerEdgeColor','g','MarkerFaceColor','k') %绘图sin(x)
hll=ezplot('sin(x)');%隐函数绘图
x=get(hll,'XData');
y=get(hll,'YData'); figure
plot(x,y);

相关文章