필터 지우기
필터 지우기

Using arrays and finding the slope

조회 수: 8 (최근 30일)
Christine Nee
Christine Nee 2017년 1월 24일
댓글: Christine Nee 2017년 1월 25일
Would it be appropriate to use this kind of logic in Matlab? I am getting a weird slope graph so I wanted to double check.
From this graph ex:
plot(strainpercentage(452:502),c3(452:502))
To find the slope, this plot:
plot(c3(452:502)./strainpercentage(452:502))

채택된 답변

Jan
Jan 2017년 1월 25일
Use gradient of diff to determine the slope.
plot(diff(c3(452:502))./diff(strainpercentage(452:502)))
  댓글 수: 1
Christine Nee
Christine Nee 2017년 1월 25일
Great, that makes more sense. Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by