查阅百度得知,李萨如图是由在互相垂直的方向上的两个频率成简单整数比的简谐振动所合成的规则的、稳定的闭合曲线。
首先是matlab Guide图的绘制,这是我画的GUI图,
上面四个可编辑文本框分别是edit1,3,5,7,下面四个分别是edit2,4,6,8.
GUI图绘制完成就应该进行button函数的书写了:
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)h=handles.edit7;
Tx=str2num(get(h,'string')); %x周期数