【发布时间】:2015-10-05 15:31:01
【问题描述】:
我已经制作了一个 simulink 模型,并通过 MATLAB GUI 运行它,该 GUI 包含一个 BLDC 电机和一个控制其速度的 PI 控制器,现在的问题是当我停止我想要更新的模拟时输出速度图会更新它自己在运行时
% Update the string on the pushbutton
set(handles.Startstopbutton,'String','Start Simulation')
% Plot results from workspace after simulation
x = evalin('base','Scope(:,1)');
y = evalin('base','Scope(:,2)');
pHandles = plot(x,y,'Parent',handles.axesplot);
这就是我的图表更新功能
【问题讨论】:
标签: matlab simulink matlab-guide