Effacer les filtres
Effacer les filtres

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

5 vues (au cours des 30 derniers jours)
flemingtb
flemingtb le 3 Déc 2018
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 commentaire
Image Analyst
Image Analyst le 3 Déc 2018
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.)?

Connectez-vous pour commenter.

Réponses (1)

flemingtb
flemingtb le 3 Déc 2018
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.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by