Question
ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB fix this code which is taking both derivative and integral of a function.Share
ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB ONLY MATLAB fix this code which is taking both 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
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