Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to fix this error? In one of the engineering applications the relation of x and y is given by: 4e0.3x 0.5y y = 2

image text in transcribedimage text in transcribed

How to fix this error?

In one of the engineering applications the relation of x and y is given by: 4e0.3x 0.5y y = 2 dx LL cic clear all xi=0; xf=2; h=0.01; Il x=xi:h:xf; y (1)=2; II F for i=1: (xf-xi) /h Y_star=y(i) +h* (4*exp(0.8*x(i))-0.5*y(i)); y(i+1)=y(i) +h* (((4*exp(0.8*x(i))-0.5*y(i))+(4*exp(0.8*x(i+1))-0.5*y(i+1)))/2); end TII [xl, yl]= ode45 (@(x, y) 4*exp(0.8* (x))-0.5*y, [0,2],2); figure plot (x, y, 'LineWidth', 2) hold on plot (x1, yi, 'LineWidth', 2) mmand Window Index exceeds the number of array elements (1). Error in Untitled (line 12) y(i+1)=y (i) +h* (((4*exp(0.8*x(i))-0.5*y(i))+(4*exp(0.8*X(i+1))-0.5*y(i+1)))/2)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

a. What aspects of the situation are under your control?

Answered: 1 week ago