An airplane is moving with constant velocity along x-axis between two points. I need to plot range from the stationary object on the ground with position [0,250,0]. I’m using rangeangle MATLAB function to find the range and angles. I need to create a loop to plot all the points.
That what I have so far
TargetLoc = [0;-250;0];
Origin = [-2000;0;450];
mph=45;
d=linspace(-2000,2000,200);
vel=mph*0.44704;
position=d.*t;
[tgtrng, tgtang] = rangeangle(TargetLoc,Origin);
range=tgtrng
azimuth=tgtang(1)
elevation=tgtang(2)
Thanks in advance.
댓글 수: 2
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/504396-matlab-range-and-angle#comment_795047
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/504396-matlab-range-and-angle#comment_795047
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/504396-matlab-range-and-angle#comment_795075
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/504396-matlab-range-and-angle#comment_795075
댓글을 달려면 로그인하십시오.