フィルターのクリア

There is any function displacement

9 ビュー (過去 30 日間)
abduall hassn
abduall hassn 2015 年 5 月 17 日
編集済み: abduall hassn 2016 年 11 月 3 日
This array
I want find differential between the numbers then, i want find displacement
and thank u

回答 (1 件)

Joseph Cheng
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 件のコメント
abduall hassn
abduall hassn 2015 年 5 月 19 日
Brother if i have array more than one rows and columns like [ 56 78 6 88 67 77 64 93 60 70 22 34 29 45 15] How we can do it thank you and thank you
Joseph Cheng
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 ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by