使用GUI绘制多轴数据?

时间:2014-01-07 17:42:14

标签: matlab-guide

我有两个变量,即ft1< 195x1 double>和ft2< 195x1 double>和两个轴,即axis1和axis2(使用GUIDE创建)。 我想分别在这些轴上绘制这些变量。 我怎么能这样做?

1 个答案:

答案 0 :(得分:0)

如果您拥有GUI的句柄结构,这应该会有所帮助。例如,在按钮回调中使用时,您应该已经拥有它:

%1. make the first axes the current-axes:
axes(handles.axes1)
%2. plot:
plot(ft1,additional arguments...)
%3. make the second axes the current-axes:
axes(handles.axes2)
%4. plot again:
plot(ft2,additional arguments...)