I keep getting this error. I know why but i do not know how tomake the program allow negative integers starting from -12 going upby 1 until 20![fid=fopen ( AOA vs CL . txt , fprintf (fid, alp, CLIn; w ) ; alp0 =-2 . 2; -AR=10; e = 0.95; a 5.190457428; AOA= zeros (-12, 1, 12); CL zeros (-12, 1, 12) ; = for i =-12: 1:20 AOA (i) = i; CL(1) = a* (AOA (1) -alp0); fprint f (fid, %8.4f %8.4fn,AOA (1),CL (1)); end plot (AOA, CL) xlabel (Alpha AOA) ylabel (Coefficient of Lift) titleAplha vs Coefficient of Lift) axis ([-12,20,-2,2]) fclose (fid); mmand Window >HW204b Undefined function or variable x. Error in HW2Ω4b (line 14) for i = 1:x (AOA) >HW204b >HW204b Subscript indices must either be real positive integers or logicals. Error in HW2Ω4b (line 14) AOA (i) i; =](http://d2vlcm61l7u1fs.cloudfront.net/media%2F60f%2F60ffbcff-5fa6-456e-96a4-41527688625a%2FphpCd8cSC.png)
fid=fopen
PayPal Gateway not configured
PayPal Gateway not configured
I keep getting this error. I know why but i do not know how tomake the program allow negative integers starting from -12 going upby 1 until 20![fid=fopen ( AOA vs CL . txt , fprintf (fid, alp, CLIn; w ) ; alp0 =-2 . 2; -AR=10; e = 0.95; a 5.190457428; AOA= zeros (-12, 1, 12); CL zeros (-12, 1, 12) ; = for i =-12: 1:20 AOA (i) = i; CL(1) = a* (AOA (1) -alp0); fprint f (fid, %8.4f %8.4fn,AOA (1),CL (1)); end plot (AOA, CL) xlabel (Alpha AOA) ylabel (Coefficient of Lift) titleAplha vs Coefficient of Lift) axis ([-12,20,-2,2]) fclose (fid); mmand Window >HW204b Undefined function or variable x. Error in HW2Ω4b (line 14) for i = 1:x (AOA) >HW204b >HW204b Subscript indices must either be real positive integers or logicals. Error in HW2Ω4b (line 14) AOA (i) i; =](http://d2vlcm61l7u1fs.cloudfront.net/media%2F60f%2F60ffbcff-5fa6-456e-96a4-41527688625a%2FphpCd8cSC.png)
fid=fopen
PayPal Gateway not configured
PayPal Gateway not configured