From: Bruno Luong on
"Frank " <francesco.manni(a)epfl.ch> wrote in message <hrmpe0$7t1$1(a)fred.mathworks.com>...

>
> Very nice and clean solution once more! Do you have any suggestion about how to do it in a simpler case, which is the one of an average on a line profile with a generic orientation, which means oblique with respect to the x-y square axis reference of a 2d matrix?
>

Graphic library often calls for algorithm that turns-on a set of pixels on the screen that approximates a straight line between two given points. This kind of algorithm can be used, but it contains sort of complex looping, and may be too cumbersome for Matlab implementation. I have done that in my youth. You would be better stick with the generic method I have provided earlier.

Bruno
First  |  Prev  | 
Pages: 1 2
Prev: pcolor plot refresh
Next: suppressing plots