运行完图的按钮看不见了谁能帮忙即能显示出图也能显示出按钮
function varargout = lvgang(varargin)gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton',gui_Singleton, ...
'gui_OpeningFcn', @lvgang_OpeningFcn, ...
'gui_OutputFcn',@lvgang_OutputFcn, ...
'gui_LayoutFcn',[] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
= gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
function lvgang_OpeningFcn(hObject, eventdata, handles, varargin)
global ha
ha=findobj('tag','zuochimian');
handles.output = hObject;
guidata(hObject, handles);
function varargout = lvgang_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function pushbutton2_Callback(hObject, eventdata, handles)
function zuochimian_Callback(hObject, eventdata, handles)
k1=1.1
A=160
hf_c=0.8
c_c=8
z2=36
d1=k1*A; %蜗杆喉部分度圆直径
m=(2*A-d1)/z2;%模数
hf=hf_c*m; c=c_c*m;%齿顶高,齿根高,顶隙
df1=d1-2*(hf+c);
rf1=A-df1/2;
t1=-pi/5.5;t2=pi/5.5;
t=linspace(t1,t2,60);
d=linspace(0,2*pi,60)';
e1=((A*ones(size(t)))-(rf1*(cos(t))));
e2=A*ones(size(t))-rf1*cos(t);
X=cos(d)*e1;
Y=sin(d)*e2;
Z=ones(size(d))*rf1*sin(t);
mesh(Z,X,Y);
axis equal
shading interp; colormap(copper)
xlabel('\fontsize{20}\itz\rm_{1}\fontsize{18}/mm')
ylabel('\fontsize{20}\itx\rm_{1}\fontsize{18}/mm')
zlabel('\fontsize{20}\ity\rm_{1}\fontsize{18}/mm')
box off
运行完图的按钮看不见了谁能帮忙即能显示出图也能显示出按钮 参考http://forum.vibunion.com/forum/viewthread.php?tid=18006
你的程序完全不对
页:
[1]