資源簡介
用于MATLAB畫飛機三維運動軌跡仿真結果的工具箱,將文件夾放在自己代碼的路徑下,將其添加進path中就可以調用,方便簡單,里面有12中飛機的外形模型,閱讀工具的說明,里面還有關于調整光照的說明

代碼片段和文件信息
function?trajectory2(xyzpitchrollyawscale_factorstepvarargin)
%???function?trajectory2(xyzpitchrollyawscale_factorstepselector)
%???
%
%???xyz???????????????center?trajectory?(vector)????[m]
%???
%???pitchrollyaw??????euler‘s?angles????????????????[rad]
%???
%???scale_factor????????normalization?factor??????????[scalar]
%??????????????????????????????(related?to?body?aircraft?dimension)
%???
%???step????????????????attitude?sampling?factor??????[scalar]
%??????????????????????????????(the?points?number?between?two?body?models)
%???????OPTIONAL?INPUT:?
%???
%???selector????????????select?the?body?model?????????[string]
%??????????????????????????????A-10?????????A-10?Body?Model?????????????
%??????????????????????????????cessna???????Cessna?Body?Model
%??????????????????????????????mig??????????Mig?Body?Model
%??????????????????????????????tomcat???????Tomcat?Body?Model
%??????????????????????????????jet??????????Generic?jet?body?model
%??????????????????????????????shuttle??????Space?Shuttle?body?model
%??????????????????????????????helicopter???Helicopter?Body?Model
%??????????????????????????????747??????????Boeing?747?Body?Model
%??????????????????????????????biplane??????Generic?Biplane?body?model
%??????????????????????????????md90?????????Md90?body?model
%??????????????????????????????dc10?????????Dc10?Body?Model
%??????????????????????????????ah64?????????Ah64?helicopter?body?model
%
%???????NOTICE:?if?the?selector?is?omitted?the?version?2?use?the?same?stylized
%???????????????body?model?of?versin?1
%??????????????
%???*******************************
%???Function?Version?2.0?
%???2/04/2004?(dd/mm/yyyy)
%???Valerio?Scordamaglia
%???v.scordamaglia@tiscali.it
%???*******************************
if?nargin<8
????disp(‘??Error:‘);
????disp(‘??????Error:?Invalid?Number?Inputs!‘);
????return;
end
if?(length(x)~=length(y))|(length(x)~=length(z))|(length(y)~=length(z))
????disp(‘??Error:‘);
????disp(‘??????Uncorrect?Dimension?of?the?center?trajectory?Vectors.?Please?Check?the?size‘);
????return;
end
if?((length(pitch)~=length(roll))||(length(pitch)~=length(yaw))||(length(roll)~=length(yaw)))
????disp(‘??Error:‘);
????disp(‘??????Uncorrect?Dimension?of?the?euler‘‘s?angle?Vectors.?Please?Check?the?size‘);
????return;
end
if?length(pitch)~=length(x)
????disp(‘??Error:‘);
????disp(‘??????Size?mismatch?between?euler‘‘s?angle?vectors?and?center?trajectory?vectors‘);
????return
end
if?step>=length(x)
????disp(‘??Error:‘);
????disp(‘??????Attitude?samplig?factor?out?of?range.?Reduce?step‘);
????return
end
if?step<1
????step=1;
end
if?nargin>9
????disp(‘??Error:‘);
????disp(‘??????too?much?input?arguments!‘);
????return
end
if?nargin==8
trajectory_old(xyzpitchrollyawscale_factorstep);
return;
else
tmp=cell2mat(varargin(1));
selector=num2str(tmp);
clear?tmp;
end;
cur_dir=pwd;
if?strcmp(selector‘shuttle‘)
????load?shuttle;
????V=[-V(:2)?V(:1)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????1481792??2016-03-31?02:48??trajectory_vers2\80jet.mat
?????文件??????848440??2016-03-31?02:48??trajectory_vers2\83plane.mat
?????文件??????212984??2016-03-31?02:48??trajectory_vers2\A-10.mat
?????文件??????197784??2016-03-31?02:48??trajectory_vers2\ah64.mat
?????文件??????508328??2016-03-31?02:48??trajectory_vers2\biplane.mat
?????文件??????462488??2016-03-31?02:48??trajectory_vers2\boeing_747.mat
?????文件??????188216??2016-03-31?02:48??trajectory_vers2\dc10.mat
?????文件?????1147832??2016-03-31?02:48??trajectory_vers2\helicopter.mat
?????文件??????482408??2016-03-31?02:48??trajectory_vers2\md90.mat
?????文件??????606824??2016-03-31?02:48??trajectory_vers2\mig.mat
?????文件??????168944??2016-03-31?02:48??trajectory_vers2\shuttle.mat
?????文件??????603672??2016-03-31?02:48??trajectory_vers2\tomcat.mat
?????文件???????11511??2016-03-31?02:48??trajectory2.m
?????文件????????1320??2016-03-31?02:48??license.txt
- 上一篇:matlab 非線性光學模擬
- 下一篇:fastFWI-master.zip
評論
共有 條評論