How do I calculate velocity with v= v0+a*t for loop?
3 ビュー (過去 30 日間)
古いコメントを表示
I am analyzing data from an accelerometer. I first calculated the Aall,than calculate velocity with v= v0+a*t for loop,but can't doing.
A=1:1:50;
Aall=A*9.8;
t=0.1:0.1:5;
for i=1;length(t)
Ve=0;
Ve=Ve+Aall(i)*t;
V(i)=Ve;
end
0 件のコメント
回答 (1 件)
Mathias Andersen
2020 年 5 月 4 日
You need to use : instead of ; in the for loop values, and V(i) = Ve(i)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!