Using arrays and finding the slope
8 次查看(过去 30 天)
显示 更早的评论
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))
0 个评论
采纳的回答
Jan
2017-1-25
Use gradient of diff to determine the slope.
plot(diff(c3(452:502))./diff(strainpercentage(452:502)))
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!