Borrar filtros
Borrar filtros

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

5 visualizaciones (últimos 30 días)
flemingtb
flemingtb el 3 de Dic. de 2018
Respondida: flemingtb el 3 de Dic. de 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 comentario
Image Analyst
Image Analyst el 3 de Dic. de 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.)?

Iniciar sesión para comentar.

Respuestas (1)

flemingtb
flemingtb el 3 de Dic. de 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.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by