资源简介
哈工大精密机械学大作业,凸轮仿真程序,内有源程序与课程设计说明书。
代码片段和文件信息
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);%通知其它函数handles结构发生了变化
% hobject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure wi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 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程序\程序使用说明书.doc
文件 68608 2012-11-06 22:21 凸轮仿真加工MATLAB程序\程序设计说明书.doc
目录 0 2013-07-04 21:31 凸轮仿真加工MATLAB程序\
- 上一篇:LCE OCE GCEmatlab代码用于图像分割精度评价
- 下一篇:线性矩阵不等式
相关资源
- 数学建模大作业--送货问题
- 模式识别大作业MATLAB版)
- Matlab数字图像处理 大作业
- 用MATLAB画点电荷的电场线
- 系统辨识大作业 经典辨识方法
- 数学物理方程大作业 matlab
- MATLAB大作业图形绘制.zip
- 哈工大机器人大作业——PUMA机器人工
- 核密度估计大作业KDE
- matlab结课大作业人脸识别是否戴口罩
- 现代控制理论大作业.zip
- matlab小车倒立摆模糊控制程序-模糊大
- 生物医学信号处理大作业语音信号处
- MATLAB 课设大作业 多按键
- 哈工大模式识别--k均值算法
- project项目管理期末大作业
- 图形图像的识别,一个我们的大作业
- 数学实验大作业含程序及实验报告
- 中国科学技术大学(中科大)数字图
- matlab课程大作业—观察任意两列波的
评论
共有 条评论