How do I reduce the amount of vectors I get from the gradient function without compromising resolution?
The gradient function returns the gradient of a scalar function (in the 3-dimensional case) depending on z-values, which means the gradient is approximated. To get a better approximation it would be best to feed as much z-values into the gradient function as possible. The function returns a gradient vector for every z-value fed to the function. Wanting to visualize the gradient, this means that for higher resolution gradients a lot of vectors are generated, which can create cluttered visualization (i.e. figure 1, where the blue lines underneath the curve represent the gradient vectors).
Is it possible to reduce the amount of vectors returned by the gradient function to improve visualization?The gradient function returns the gradient of a scalar function (in the 3-dimensional case) depending on z-values, which means the gradient is approximated. To get a better approximation it would be best to feed as much z-values into the gradient function as possible. The function returns a gradient vector for every z-value fed to the function. Wanting to visualize the gradient, this means that for higher resolution gradients a lot of vectors are generated, which can create cluttered visualization (i.e. figure 1, where the blue lines underneath the curve represent the gradient vectors).
Is it possible to reduce the amount of vectors returned by the gradient function to improve visualization? The gradient function returns the gradient of a scalar function (in the 3-dimensional case) depending on z-values, which means the gradient is approximated. To get a better approximation it would be best to feed as much z-values into the gradient function as possible. The function returns a gradient vector for every z-value fed to the function. Wanting to visualize the gradient, this means that for higher resolution gradients a lot of vectors are generated, which can create cluttered visualization (i.e. figure 1, where the blue lines underneath the curve represent the gradient vectors).
Is it possible to reduce the amount of vectors returned by the gradient function to improve visualization? gradient, vectors MATLAB Answers — New Questions









