Filter löschen
Filter löschen

There is any function displacement

9 Ansichten (letzte 30 Tage)
abduall hassn
abduall hassn am 17 Mai 2015
Bearbeitet: abduall hassn am 3 Nov. 2016
This array
I want find differential between the numbers then, i want find displacement
and thank u

Antworten (1)

Joseph Cheng
Joseph Cheng am 17 Mai 2015
Bearbeitet: Joseph Cheng am 17 Mai 2015
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 Kommentare
abduall hassn
abduall hassn am 19 Mai 2015
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 am 19 Mai 2015
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by