>> a_p=0.24;

a_d=0.12;

a_i=0.22;

s=0.1*e12;

kp=0.5; ki=0.25; kd=0.47;

ks_p=0.1*(1/(a_p+abs(s)-a_p*abs(s))+(a_p-1)/(a_p*abs(s)-1));

ks_d=0.1*(1/(a_d+abs(s)-a_d*abs(s))+(a_d-1)/(a_d*abs(s)-1));

ks_i=0.1*(1/(a_i+abs(s)-a_i*abs(s))+(a_i-1)/(a_i*abs(s)-1));

phi_p=s*ks_p;

phi_d=s*ks_d;

phi_i=s*ks_i;

u=kp*phi_p+ki*phi_i+kd*phi_d

Error using *

Out of memory. Type HELP MEMORY for your options.

Error in main (line 32)

phi_i=s*ks_i;

how to fix this memory error

More Chandar Kumar's questions See All
Similar questions and discussions