There is any function displacement
9 次查看(过去 30 天)
显示 更早的评论
This array
I want find differential between the numbers then, i want find displacement
and thank u
0 个评论
回答(1 个)
Joseph Cheng
2015-5-17
编辑:Joseph Cheng
2015-5-17
you can use the function diff() to perform this differential. so you'll have something like
da = diff(a); %this will get your your [4 5 ...]
then you can perform your da./a(1:end-1)*100.
7 个评论
Joseph Cheng
2015-5-19
da = diff(a,[],2)./a read the documentation of the function diff() to see that by performing diff(a,[],2) we perform it in the correct dimension.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!