the_white_man (the_white_man) wrote in matlab_help,
the_white_man
the_white_man
matlab_help

How to use "gradient" func with sparse arrays?

I know it is probably a long shot but I will try it anyway.

I am trying to calculate a gradient between points in a sparse array. Normally I would use a gradient function, but for a sparse array it calculates gradients between data points and surrounding zeros, obviously not what I wanted. Is there a standard way to handle sparse arrays with functions like gradient, pdist, linkage etc?
  • Post a new comment

    Error

    default userpic
  • 5 comments