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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2017 年 1 月 24 日

コメント済み:

2017 年 1 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by