matlab中plot如何在图中加入公式??谢谢!!

来源:百度知道 编辑:UC知道 时间:2024/06/01 07:52:57
在figure中添加公式标示,方便读图!
谢谢高手

t = 0:.1:pi;
p = sin(t);
plot(t,p);
m = 1; % 鼠标键:1-left; 2-mid; 3-right
[x,y,m] = ginput(10) % 用鼠标键取10组坐标

依次输入:
figure;
plot(....); %做图
title('Here is the title');
xlabel('X label here');
ylabel('Y label here');

figure;
plot(....); %做图
title('Here is the title');
xlabel('X label here');
ylabel('Y label here');