I need to plot a colored velocity field over a sphere in 3d. I'm looking for a function that looks similar to this:
f(X, Y, Z, V) Where X, Y, Z represent the 3d coordinates (3 dimensional matrices that are formed using meshgrid) and V is a 3 dimensional matrix that determines the velocity value for each coordinate. The result should be a 3d colored plot with a changing color according to the value in V for every coordinate.
I tried to use isosurface but it didn't work well because I need contours, I just need the specific value I have in every coordinate. I used quiver3 and it works well but I need the plot to be mapped by colors rather than arrows.
I would really appreciate any ideas and solutions as I've been reading lots comments of many similar questions (like this one: How to plot 4D contour lines (XYZ-V) in MATLAB?) and couldn't find any solution.
Thanks you in advance.