I have trouble getting MATLAB to increase altitude or plot tail height upward when I use a positive number. I have to use a negative number. Why? is this???
Code:
pn=0;
pe=0;
pd=0;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=0.5; %Change in position.
dpsi=0.01; %Change in yaw angle.
simlength=150;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
pe = pe+dpn;
%THE CODE THAT PRODUCES A PROBLEM IS BELOW
pd = pd – 0.1;
There’s also a problem with the tail fin. I have to designate it as being oriented "downward"…in the negative direction, to produce a vertical tail oriented upward. This is similar to the increment for the vertical height scale above, being increased with a negative number.Code:
pn=0;
pe=0;
pd=0;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=0.5; %Change in position.
dpsi=0.01; %Change in yaw angle.
simlength=150;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
pe = pe+dpn;
%THE CODE THAT PRODUCES A PROBLEM IS BELOW
pd = pd – 0.1;
There’s also a problem with the tail fin. I have to designate it as being oriented "downward"…in the negative direction, to produce a vertical tail oriented upward. This is similar to the increment for the vertical height scale above, being increased with a negative number. Code:
pn=0;
pe=0;
pd=0;
phi=0;
theta=0;
psi=0;
handle=[];
%Simulation parameters
dpn=0.5; %Change in position.
dpsi=0.01; %Change in yaw angle.
simlength=150;%Number of Sim Steps
%Draw and update the plane’s position.
for k = 1:simlength
pn = pn+dpn;
pe = pe+dpn;
%THE CODE THAT PRODUCES A PROBLEM IS BELOW
pd = pd – 0.1;
There’s also a problem with the tail fin. I have to designate it as being oriented "downward"…in the negative direction, to produce a vertical tail oriented upward. This is similar to the increment for the vertical height scale above, being increased with a negative number. down is up, why is up negative? MATLAB Answers — New Questions