资源简介
哈工大精密机械学大作业,凸轮仿真程序,内有源程序与课程设计说明书。

代码片段和文件信息
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代码用于图像分割精度评价
- 下一篇:线性矩阵不等式
相关资源
- 信息论大作业 LZ78算法编译码 matlab仿
- 数字图像处理 MATLAB 大作业 代码及其
- 数字图像处理期末大作业.doc
- matlab结课大作业人脸识别是否戴口罩
- 西交大模式识别编程大作业报告+MAT
- 信号与系统大作业 声音信号的频谱分
- 机械建模机械建模各章节课程作业、
- 图书管理信息系统access版的数据库大
- 模糊控制哈工大课件ppt
- 西安电子科技大学随机信号大作业
- 东南大学matlab短学期大作业--直流配电
- Matlab课程设计:对作业文档格式化批
- matlab大作业
- 哈工大数值分析、计算方法matlab上机
- 现代控制理论大作业.rar
- 基于遗传算法的TSP问题求解
- 电磁场数值分析大作业_MATLAB计算微带
- 电磁场数值分析大作业_MATLAB计算圆铜
- MATLAB大作业
- 模式识别大作业K均值算法matlab平台实
- 雷达对抗大作业
- 数学建模大作业--送货问题
- 模式识别大作业MATLAB版)
- Matlab数字图像处理 大作业
- 用MATLAB画点电荷的电场线
- 系统辨识大作业 经典辨识方法
- 数学物理方程大作业 matlab
- MATLAB大作业图形绘制.zip
- 哈工大机器人大作业——PUMA机器人工
- 核密度估计大作业KDE
评论
共有 条评论