Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

My assignment is to make my graph look like the figure below, but I having troub

ID: 3536252 • Letter: M

Question

My assignment is to make my graph look like the figure below, but I having trouble making the graph look like this

This is data, you can download it from mediafire: http://www.mediafire.com/?donr0nic4yz4cq3

I current have this much done in Editor:

post_data = dlmread('posdat.txt',' ');

t = post_data(:,1);

x = post_data(:,2);

y = post_data(:,3);

s = post_data(:,4);


submovindex1 = find(570<=x & x<=948);

submovindex2 = find(948<=x & x<=939);

submovindex3 = find(937<=x & x<=536);

submovindex4 = find(536<=x);


figure(1)

plot(x(submovindex1(1)),y(submovindex1(1)),'-ko')

plot(x(submovindex1(end)),y(submovindex1(end)),'-bo')


plot(x(submovindex2(2)),y(submovindex2(2)),'-bo')

plot(x(submovindex2(end)),y(submovindex2(end)),'-ro')


plot(x(submovindex3(3)),y(submovindex3(3)),'-ro')

plot(x(submovindex3(end)),y(submovindex3(end)),'-go')


plot(x(submovindex4(4)),y(submovindex4(4)),'-go')

plot(x(submovindex4(end)),y(submovindex4(end)),'-ko')

xlabel('x (mm)'),ylabel('y (mm)');

axis equal;

grid on;

hold on;

set(gca, 'GridLineStyle','-');

Explanation / Answer

post_data = dlmread('posdat.txt',' '); t = post_data(:,1); x = post_data(:,2); y = post_data(:,3); s = post_data(:,4); submovindex1 = find(570
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote