Need help calculating slope in X and Y directions from matrix data

5 次查看(过去 30 天)
Need to determine max slope in a matrix of Z data for a given range of data points. For example i'd like to take the slope of (1-10) data points in row (1), then (2-11), thenm repeat for Row (2, 3, 4, ...) and so on for both rows and columns and output the MAX Row (X) slope and Max Column (Y) slope. Struggling on how to set it up like a moving average though. Any help would be greatly appreciated.
  1 个评论
Image Analyst
Image Analyst 2018-12-3
Please attach your Z matrix. It's not clear (to me at least) in your matrix, what are the x and what are the y. For a given row, are the x the column numbers and the y values the Z values of the elements in that row? Are your columns a perfect multiple of 10 and you want to move along in jumps of 10 (e.g. 1-10, 11-20, 21030, etc.), or can there be any number of columns and you want to move a window of width 10 along in "jumps" of one column at a time (e.g. 1-10, 2-11, 3-12, etc.)?

请先登录,再进行评论。

回答(1 个)

flemingtb
flemingtb 2018-12-3
Yes the matrix can vary in size and i would like to move a window of width (10) along in (1) column jumps. Exactly right.

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by