91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

哈工大精密機(jī)械學(xué)大作業(yè),凸輪仿真程序,內(nèi)有源程序與課程設(shè)計(jì)說(shuō)明書(shū)。

資源截圖

代碼片段和文件信息

function?varargout?=?tulun(varargin)

gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@tulun_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@tulun_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end

if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end

function?tulun_OpeningFcn(hobject?eventdata?handles?varargin)
axis([-8.1?8.1?-8.1?8.1]);


handles.output?=?hobject;


%?Update?handles?structure
guidata(hobject?handles);



%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?tulun_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)

%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;




function?edit1_Callback(hobject?eventdata?handles)
%?hobject????handle?to?edit1?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)

%?Hints:?get(hobject‘String‘)?returns?contents?of?edit1?as?text
%????????str2double(get(hobject‘String‘))?returns?contents?of?edit1?as?a?double


%?---?Executes?during?object?creation?after?setting?all?properties.
function?edit1_CreateFcn(hobject?eventdata?handles)
handles.f=str2double(get(handles.edit1‘string‘));
%?hobject????handle?to?edit1?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????empty?-?handles?not?created?until?after?all?CreateFcns?called

%?Hint:?edit?controls?usually?have?a?white?background?on?Windows.
%???????See?ISPC?and?COMPUTER.
if?ispc?&&?isequal(get(hobject‘BackgroundColor‘)?get(0‘defaultUicontrolBackgroundColor‘))
????set(hobject‘BackgroundColor‘‘white‘);
end






%?---?Executes?on?button?press?in?pushbutton1.
function?pushbutton1_Callback(hobject?eventdata?handles)
axes(handles.axes1);

syms?x?h
handles.b=str2double(get(handles.edit2‘string‘));
handles.e=str2double(get(handles.edit3‘string‘));
h=get(handles.edit1‘string‘);
f=eval(subs(h));
M=moviein(202);
for?i=1:201
????y=0:pi/100:2*pi;
????x=y-i/32;
????h=subs(f);
????for?k=1:201
????if?h(k)>=0
?????s(k)=h(k);
????else
????????s(k)=0;
????end
????end
for?j=1:201
a(j)=sqrt((sqrt(handles.b^2-handles.e^2)+s(j))^2+handles.e^2);
end
s=a;
polar(ys‘*‘);
axis?equal
M(:i)=getframe;
end
movie(M2);
hold?off

???
guidata(hobject?handles);%通知其它函數(shù)handles結(jié)構(gòu)發(fā)生了變化

%?hobject????handle?to?pushbutton1?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?wi

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????24957??2012-11-07?23:06??凸輪仿真加工MATLAB程序\tulun.fig
?????文件???????10262??2012-11-06?22:21??凸輪仿真加工MATLAB程序\tulun.m
?????文件??????364032??2012-11-06?22:21??凸輪仿真加工MATLAB程序\程序使用說(shuō)明書(shū).doc
?????文件???????68608??2012-11-06?22:21??凸輪仿真加工MATLAB程序\程序設(shè)計(jì)說(shuō)明書(shū).doc
?????目錄???????????0??2013-07-04?21:31??凸輪仿真加工MATLAB程序\

評(píng)論

共有 條評(píng)論

相關(guān)資源