I have three vector x,y,z I want to create a surface plot with these guys but I'm getting stuck with two native function, quiver3 and mesh. Does anyone have a minimal example?
Hi, in first you must transform the whole vectors ( vectors must be the same lengths) to matrices by using the function "meshgrid" then for 3D plots you can use "mesh", "surf". as an example:
Thank you all for the messages, I think there was a failure in my communication therefore apologize-me.
x = -8:.5:8; y = -8:.5:8;
[X, Y] = meshgrid (x,y)
until this point I got it. But what exactly I'm getting stuck relay on z. My z is not a function of X and Y, my z is another vector thus I can't create a surf plot. I just can plot a scatter in 3d.
What understand from you guys is that I should do matrix j = [x,y,z] than mesh(j). It is?