y'=y-x^2 ; y(1)= -4
Write a MATLAB program that makes two plots of the solution to
the...
60.1K
Verified Solution
Link Copied!
Question
Mechanical Engineering
y'=y-x^2 ; y(1)= -4
Write a MATLAB program that makes two plots of the solution tothe equation using the following values. Suggest you use nestedloops instead of two different loops. Be sure to label yourplots.
a. x0 = 1.0, step size h = .2, number of steps n = 20.
b. x0 = 1.0, step size h = .05, number of steps n = 80.
Answer & Explanation
Solved by verified expert
4.1 Ratings (778 Votes)
here I solved in Matlab and copy of script and graph attachedhere belowI dont think that you need to use any loop so
See Answer
Get Answers to Unlimited Questions
Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!
Membership Benefits:
Unlimited Question Access with detailed Answers
Zin AI - 3 Million Words
10 Dall-E 3 Images
20 Plot Generations
Conversation with Dialogue Memory
No Ads, Ever!
Access to Our Best AI Platform: Zin AI - Your personal assistant for all your inquiries!