필터 지우기
필터 지우기

There is any function displacement

조회 수: 7 (최근 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 CenterFile Exchange에서 Numerical 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