Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I keep getting this error. I know why but i do not know how to make the program allow negative integers starting from -12 going
I keep getting this error. I know why but i do not know how to make the program allow negative integers starting from -12 going up by 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.4f ',AOA (1),CL (1)); end plot (AOA, CL) xlabel (Alpha AOA) ylabel (Coefficient of Lift') title"Aplha vs Coefficient of Lift') axis ([-12,20,-2,2]) fclose (fid); mmand Window >HW204b Undefined function or variable 'x'. Error in HW24b (line 14) for i = 1:x (AOA) >HW204b >HW204b Subscript indices must either be real positive integers or logicals. Error in HW24b (line 14) AOA (i) i; =Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started