
matlab
matlab学习
dxm809
这个作者很懒,什么都没留下…
展开
-
matlab text的属性
% texthf = axes;ht = text(1, 1, '示例');get(ht)text('String', '\int_0^x dF(x)', 'Position', [0.5 .5]);text('interpreter', 'latex', 'String', '$$ \int_0^x dF(x) $$', 'Position', [0.2 .2]);% 原始的语句写出来plot(x);% 在原始语句两遍加上单引号'plot(x);'% 当原始语句中含有引号,那.原创 2021-07-14 16:45:18 · 644 阅读 · 0 评论 -
matlab line属性
hf=figure;hl=plot([0:10]);get(hl)set(hl,'Color','r');set(hl,'Marker','p');set(hl,'MarkerEdgeColor','g','MarkerFaceColor','k');% hl2 = ezplot('sin(x)');% x=get(hl2,'XData');% y=get(h12,'YData');% figure% plot(x,y)原创 2021-07-14 16:40:45 · 1428 阅读 · 0 评论 -
matlab axes的属性
ha=axesget(ha)set(ha,'NextPlot','add')plot([0:100]);plot(sin([0:0.01:3]));原创 2021-07-14 16:40:18 · 854 阅读 · 0 评论 -
matlab figure的属性
hf=figureget(hf)set(hf, 'Color', 'w');set(hf, 'Menubar', 'none');set(hf, 'NumberTitle', 'off', 'Name', '演示');set(hf, 'ReSize', 'off');pause(3)set(hf, 'Visible', 'off');pause(3)set(hf, 'Visible', 'on');set(hf, 'WindowStyle', 'modal');set(hf, 'Wi.原创 2021-07-14 16:29:56 · 657 阅读 · 0 评论 -
matlab 添加uicontrol
hf=figure(... 'Units','Normalized', ... 'Position',[0.2,0.2,0.6,0.5], ... 'Menu','none', ... 'Color','w');ha=axes('Parent',hf, ... 'Units','Normalized', ... 'Position',[0.1,0.1,0.6,0.8], ... 'Box','on', ... 'NextPlot','ad.原创 2021-07-14 16:15:37 · 817 阅读 · 0 评论 -
maplab 常用对象操作
% 对象操作示例hf = figure('Units', 'Normalized', ... 'Position', [0.2 0.3 0.5 0.5], ... 'Menu', 'none');ha = axes('Parent', hf, 'Units', 'Normalized', ... 'Position', [0.1 0.1 0.8 0.8]);hl = line('Parent', ha, 'XData', [0:0.01:7], ... 'YDat.原创 2021-07-14 15:33:29 · 162 阅读 · 0 评论 -
matlab对象查看和设置
% 常使用的对象查看和设置函数% 1.get、set函数get(0) % 获得句柄值为0的对象的属性,即显示器对象属性plot([0:10]); % 绘制一幅图title('示例'); % 增加text对象% 获得figure的所有子对象allchild(gcf)% 查看子对象类型get(ans(1)) % type属性可以看到子对象类型% 获得静态文本“示例”的句柄并进行设置ht = get(gca,'Title')set(ht,'String','Hello','Font.原创 2021-07-14 15:32:42 · 623 阅读 · 0 评论