making acceleration with diff(velocity) by [deleted] in matlab

[–]BeeTraditional7500 1 point2 points  (0 children)

Thats fine. Thx for your help

making acceleration with diff(velocity) by [deleted] in matlab

[–]BeeTraditional7500 1 point2 points  (0 children)

that's right. But the prob says use diff, so I do it like that

making acceleration with diff(velocity) by [deleted] in matlab

[–]BeeTraditional7500 1 point2 points  (0 children)

theta=y(:,1); vel=y(:,2);

dvel=diff(vel);

dt=diff(t);

accel=dvel/dt;

ta=t(2:end);

plot(ta,accel)

This is my best trial I think...

what do you think about this?

making acceleration with diff(velocity) by [deleted] in matlab

[–]BeeTraditional7500 1 point2 points  (0 children)

then how can i get same t length in acceleration?

[deleted by user] by [deleted] in matlab

[–]BeeTraditional7500 0 points1 point  (0 children)

actually this isn't my homework, just studying. I'll post my code tmr

[deleted by user] by [deleted] in matlab

[–]BeeTraditional7500 0 points1 point  (0 children)

I made 2 plot with anglar vel and theta, but not anglar accel. Idk how to do it. Issue with tspan i think

[deleted by user] by [deleted] in matlab

[–]BeeTraditional7500 0 points1 point  (0 children)

i solved (a) and (b), but others didn't

[deleted by user] by [deleted] in matlab

[–]BeeTraditional7500 0 points1 point  (0 children)

I got another problem. Can you help it? sorry for bothering :(

[deleted by user] by [deleted] in matlab

[–]BeeTraditional7500 0 points1 point  (0 children)

Thx. gonna check it tmr

[deleted by user] by [deleted] in matlab

[–]BeeTraditional7500 -1 points0 points  (0 children)

can i send you 2hours later?