![]() |
如何使用航空工具箱为火箭创建动画
如何在MATLAB Aerospace Toolbox中使用xyz,侧倾,俯仰,偏航和时间为火箭创建动画?
以下是一些示例数据: x = 1.0e+06 .*[3.0138, 3.1345, 3.7675, 4.7347,6.1352]; y = 1.0e+07 .*[-1.8160,-1.8244,-1.8326,-1.8232,-1.7877]; z = 1.0e+07 .*[0.9917,0.9980,1.0119,1.0218,1.0261]; r =[ 0,0,0.0046,0.0046,0.0046]; p =[ 89.9900,26.6402,22.4665,16.0608,3.6879]; y =[86.7370,86.7370,86.7810,86.7810,86.7810]; t =[0,95,186,282,380]; 到目前为止,这是我尝试过的: data = [x',y',z',r',p',y',t']; h=Aero.Animation; f=figure; h.Figure=f; h.initialize(); h.FramesPerSecond=10 h.TimeScaling = 5; idx1=h.createBody('delta2.ac','ac'); h.show() h.bodies{1}.TimeseriesSourceType='Array6DoF'; h.bodies{1}.timeseriesSource=data; h.Camera.offset=[-150 -150 0]; h.show() h.VideoRecord = 'on'; h.VideoQuality = 50; h.VideoCompression = 'Motion JPEG AVI' h.VideoFilename = 'rocket trajectory'; h.play() h.VideoRecord='off'; 但是,当我尝试运行数据时,火箭不会旋转或平移。 [url=https://stackoverflow.com/q/58628523]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 23:42。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.