Emails us- support@assignmnetanswers.com. Call US

Assignment help 1221

Can someone explain why I keep getting an error in MatLab on the bolded line. Its in the function y-Y(i)+h*(y-y.^2 + 1.14*cos(exp(t/2)) . I have tried everything. Thank you 🙂

%Eulers Improved

%y’=y-y^2+1.14*cos(exp(1)^(t/2)

y0=-.5;

t0=0;

tEnd=20;

h=1/32;

N=(tEnd-t0)/h;

%%Initialize Solutions

T= [0:h:tEnd]’;

Y=zeros(N+1,1);

Y(1)=y0;

%%Solve using Eulers Improved Method

for i=1:N

  t=T(i)+h;

  y= f..(@(y)  y-Y(i)+h*(y-y.^2 + 1.14*cos(exp(t/2)), Y(i);

  T(i+1) = t;

  Y(i+1)=y;

end

%%Plot 

plot(T,Y);

Solution:

15% off for this assignment.

Our Prices Start at $11.99. As Our First Client, Use Coupon Code GET15 to claim 15% Discount This Month!!

Why US?

100% Confidentiality

Information about customers is confidential and never disclosed to third parties.

Timely Delivery

No missed deadlines – 97% of assignments are completed in time.

Original Writing

We complete all papers from scratch. You can get a plagiarism report.

Money Back

If you are convinced that our writer has not followed your requirements, feel free to ask for a refund.