MATLAB: Showing points on a graph showing points on a graph I want to show three points on a 3D graph. x, y, and z show the x, y, and z coordinates of point1, point2, and point3, respectively. How? x = [1 2 3]; y = [4 5 6]; z = [7 8 9]; Best Answer I prefer stem3 for these, but plot3 or scatter3 (or a combination of them) will also work, depending on what you want to do.The Code:x = [1 2 3];y = [4 5 6];z = [7 8 9];figure(1)stem3(x, y, z)grid on Related SolutionsMATLAB: 3D surface plot question For your data, I would use the scatter3 function. If you want to do a surface fit, see the documentation for Scattered Data Interpolation. MATLAB: Converting rectangular grids to an array Hi Alex,The concatenationm = [x_mesh(:) y_mesh(:) z_mesh(:)]gives a 27x3 list of all the points, but not in the order you prefer. Doing some permutations on indices works:xx = permute(x_mesh,[3 2 1]);zz = permute(z_mesh,[3 2 1]);m = [xx(:) y_mesh(:) zz(:)] Related QuestionHow to concatenate two matrices(input given as ?[?] = {1, 2,3} impulse given as ℎ[?] = {4,5,6} for 0 ≤ ? ≤ 2.) there is an error in the output..in sketching of y[n], we required a discrete in time signal but the output signal is continuous as seen clearly in screenshot belowWhat does the colon mark indicates in the color seperation of image
Best Answer