Question: in matlab getting errors t=0:0.1tfi A calculate x and y based on teh given equatrons x=68.8+t,(t.729t+18);y=4+0,6t.=(sin(2+pi+t)t+2): 4 Use the fprinti to print your result of

t=0:0.1tfi A calculate x and y based on teh given equatrons x=68.8+t,(t.729t+18);y=4+0,6t.=(sin(2+pi+t)t+2): 4 Use the fprinti to print your result of x and y as floating nusber with * field width of 8 and 2 digits arter teh decinal point. * Do not change the foltowing line. If your code runs correctly, you witl 8. see a graph. conet (x,y),xlabet(x(n)),y labet (y()}), tit le ( Mot ion of a particle') end function % define your function \% Describe breifly what this function is for. %x and y : locations of a moving particle in meters at certain time. \% tf : final time of the motion in seconds \% define your time variable t starting from 0 to tf with increment of 0.1 t=0; \% calculate x and y based on teh given equations x=; y=; \% Use the fprintf to print your result of x and y as floating number with % field width of 8 and 2 digits after teh decimal point. fprintf() \% Do not change the following line. If your code runs correctly, you will \% see a graph. comet (x,y), x label (x(m)),ylabel(y(m)), title('Motion of a particle')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
