Question: ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB fix this code which is taking derivative and integral of a function.Share the

ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB

fix this code which is taking derivative and integral of a function.Share the output and sketch the graph via matlab ..(Without graph the answer will not accepted.)

syms t t=0:0.1:15 v0 = t; x0 = t; y0 = t; g = 9.81; x = (v0)*cos(t).*t+(x0); y = (v0)*sin(t).*t-0.5*g.*t.^2+(y0); d = ((v0)*sin(t)+sqrt((v0*sin(t))^2+2*g*(y0)))/g; diff(x) diff(y) diff(d) int(x) int(y) int(d) figure for=i=1:length(t) x=vo*t(i); y=vo*t(i)-g*t(i)^2; plot(x,y) axis equal xlabel('x') ylabel('y') drawnow end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!