-
大小: 113KB文件类型: .zip金币: 2下载: 0 次发布日期: 2021-06-01
- 语言: Matlab
- 标签: 3D matlab版GUI
资源简介
3D模拟飞机飞行,在matlab GUI界面下实现,全部代码。

代码片段和文件信息
% Clean the variables
clear all;
% Define the parameter t
n=4;
t=0:0.02:n*pi;
% Define a and b
a=8;
b=1;
% Access the 3D World from MATLAB
world=vrworld(‘my_plane.wrl‘ ‘new‘);
open(world);
fig=vrfigure(world);
set(fig ‘Viewpoint‘ ‘Far View‘);
airpln=vrnode(world ‘Plane‘);
vector_z=[0 0 1];
% Create the simulation loop
for i=1:length(t)
pause (0.01);
vector_position=[a*cos(t(i)) b*t(i) a*sin(t(i))];
% Translation setting for the Plane node
airpln.translation=vector_position;
% Compute the cross product and the amount of rotation theta
vector_velocity=[-a*sin(t(i)) b a*cos(t(i))];
vector=cross(vector_velocity vector_z);
vector=vector/norm(vector);
theta=acos(dot(vector_velocity vector_z)/(norm(vector_velocity)*norm(vector_z)));
% Rotation setting for the Plane node
airpln.rotation=[vector -theta];
% Update the figure
vrdrawnow;
end
% Exit gracefully
pause;
close(world)
delete(world)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-07-15 17:29 3D模拟飞机飞行\
文件 1551 2010-07-01 22:21 3D模拟飞机飞行\license.txt
文件 28644 2009-12-16 23:41 3D模拟飞机飞行\my_plane.wrl
文件 26359 2009-12-17 07:19 3D模拟飞机飞行\my_plane_anim_1.PNG
文件 1002 2009-12-17 07:16 3D模拟飞机飞行\Plane_Helix.m
文件 88574 2009-12-17 07:20 3D模拟飞机飞行\Slides.pdf
目录 0 2009-12-16 23:41 3D模拟飞机飞行\texture\
相关资源
- 冈萨雷斯数字图像处理matlab版(第三
- matlab版的车牌识别程序
- p文件,MATLAB的
- 跳一跳辅助_matlab版本
- 基于sift特征的人民币识别matlab版
- 悉尼大学SLAM实验数据MATLAB版
- 3dsmax 模型 m4a1
- MATLAB版大富翁完整版
- Faster-RCNN+ZF制作自己的数据集和训练模
- 数字信号处理实验指导书MAtlab版-数字
- 3d max模型 奔驰smart
- bm3d的matlab代码
- BM3D matlab
- ECO配置好的MATLAB版本
- 雷达系统分析与设计(MATLAB版)(第
- 图像去噪方法分析比较BLS GSM BM3D Non
- 飞翼高达 3DMAX模型
- 3dS MAX模型《航空母舰》太震撼啦
- USB CAN 二次开发源代码 matlab版本Demo
- 数值分析上机题(matlab版)(东南大
- 中山大学 朝红阳 图像处理作业 matl
- 基于hmm的数字语音识别_matlab版
- 数值方法MATLAB版 英文版 答案
- 数字信号处理(MATLAB版)235940
- 数字信号处理MATLAB版第三版
- 现代数字图像处理技术提高及应用案
- 点云的三维重建代码,内容丰富matl
- 3DMAX室内模型
- point3d 点云三维重建
- 数字图像处理(MATLAB版)
评论
共有 条评论