hi everyone. in my project , I'm facing with a problem. in PID controller , desire poles are -1+j3 & -1-j3
after design , the overshoot is very high and the settling time more than PD controller
i change the K and zi (pi) several times . but not better.
the pd controller : (s+23)
pid controller...
hey everyone . I want to plot a Grade 4 equation in MATLAB. but don't know how to do. Can anyone guide me?
equation : f = 1.47*(x^4)-10^7*(x)+58.92*(10^6)
in my problem that i solve it , I would take different velocity and see how change orbit. and i should use m because it's mass of satellite.
I put the velocity that gave me in y component and become Ok !
Now , I don't know how to plot orbit around Earth . this said in different topic.
Hi. can you help me to plot orbit around Earth with sphere in MATLAB?
I wrote the code that plot 3D orbit but without earth.
the code:
clear all
close all
clc
R=6371e+3;
r0=3e+5;
p0=[R+r0;0;0;0;10000;0];
[t,p]=ode45(@sattelite,[0,12000],p0);
xout=p(:,1);
yout=p(:,2);
zout=p(:,3);
vx=p(:,4)...
all the errors are:
Unrecognized function or variable 'x'.
Error in T3>sattelite (line 16)
p=[x position;y position;z position;x velocity(vx);y velocity(vy);z velocity(vz)];
Error in odearguments (line 90)
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ode45 (line...
hi guys, I'm trying to write a program in MATLAB to solve and plot equation of motion of 2 body problem but it errors as i don't know what it says!
do you know how to help me? please!
The main equation is r(double dot)=-(mu)*r(hat)/r^3
The code that i wrote is:
clear all
close all
clc...