why the error comes
100% E52 Wed 7:41 AM MATLAB R2016a g (CHUNG HA)-"Snap... EDITOR PUBLISH...
100% E52 Wed 7:41 AM MATLAB R2016a g (CHUNG HA)-"Snap... EDITOR PUBLISH VIEW Close on S+one www.youtube.com insert Efx P Recommended: Stone Musl... Settings ment Breakpoints Run Run and Advance Run and ndent Advance Time LDIT BREAKPOINTS RUN ents MATLAB Editor /Users/xinyuli/Documents/MATLAB/EMEC 5671Assign2.m EMEC 5671Assign2.m bisect.m W4 + 117 118 W5.Duffing's oscillator function dxedxdt (t,x) 119 120 121 dx(1,1)x(2,1); dx(2,1)-e.25x (2,1)+x(1,1)-x(1,1)^3+0.3*cos (t) ; 122. 123- 124 125 end tspan [e 60]; xe [e;11 It,x]-ode45(@dxdt, tspan, x0) ; figure(1) subplot (2,1,1) plot (t,x(:,1)) subplot (2,1,2) plot(t,x(:,2)) figure(2) 126- 127 128 129 130- 131- 132- 133- 134 Command Window be a Reference page for function >> EMEC_5671Assign2 Error: File: EMEC 5671Assian2.m Line: 113 Column: 21 Function definitions are not permitted in this context. >EMEC 5671Assign2 Error: File: EMEC 5671Assign2.m Line: 113 Column: 21 Function definitions are not permitted in this context. Ln 120 Col dxdt W
100% E52 Wed 7:41 AM MATLAB R2016a g (CHUNG HA)-"Snap... EDITOR PUBLISH VIEW Close on S+one www.youtube.com insert Efx P Recommended: Stone Musl... Settings ment Breakpoints Run Run and Advance Run and ndent Advance Time LDIT BREAKPOINTS RUN ents MATLAB Editor /Users/xinyuli/Documents/MATLAB/EMEC 5671Assign2.m EMEC 5671Assign2.m bisect.m W4 + 117 118 W5.Duffing's oscillator function dxedxdt (t,x) 119 120 121 dx(1,1)x(2,1); dx(2,1)-e.25x (2,1)+x(1,1)-x(1,1)^3+0.3*cos (t) ; 122. 123- 124 125 end tspan [e 60]; xe [e;11 It,x]-ode45(@dxdt, tspan, x0) ; figure(1) subplot (2,1,1) plot (t,x(:,1)) subplot (2,1,2) plot(t,x(:,2)) figure(2) 126- 127 128 129 130- 131- 132- 133- 134 Command Window be a Reference page for function >> EMEC_5671Assign2 Error: File: EMEC 5671Assian2.m Line: 113 Column: 21 Function definitions are not permitted in this context. >EMEC 5671Assign2 Error: File: EMEC 5671Assign2.m Line: 113 Column: 21 Function definitions are not permitted in this context. Ln 120 Col dxdt W