Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have been trying to solve number 1 with the code below but i keep getting this error. could you tell me a way to
I have been trying to solve number 1 with the code below but i keep getting this error. could you tell me a way to correct this to achieve the solution?
Editor -C:\Users heath Documents MATLABinonlinear.m nonlinear.m X2e hardspring.m 3- Untitled3.m Untitled4.mX Untitled5.m X function yp = nonlinear (t,y) (1) tspan= [0,20]; | (2) [t,y] = ode 45 ("nonlinear", tspan,y2); plot (t,y:,1)) grid xlabel ('time) ylabel('u' title ('u vs t') hold on: 12 14 Command Window Not enough input arguments. Error in nonlinear (line 3) Editor -C:\Users heath Documents MATLABinonlinear.m nonlinear.m X2e hardspring.m 3- Untitled3.m Untitled4.mX Untitled5.m X function yp = nonlinear (t,y) (1) tspan= [0,20]; | (2) [t,y] = ode 45 ("nonlinear", tspan,y2); plot (t,y:,1)) grid xlabel ('time) ylabel('u' title ('u vs t') hold on: 12 14 Command Window Not enough input arguments. Error in nonlinear (line 3)
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