About 49,700 results
Open links in new tab
  1. Matlab: I have two points in a 3D plot and i want to connect them …

    Jun 17, 2013 · 1 I have a 3D plot and two points coordinates A (0,0,0) and B (13,-11,19). I just want to plot a visible line connecting this two points ... I tried plot3 (0,0,0, 13,-11,19) and other …

  2. matlab - plot3 line color based on value - Stack Overflow

    Aug 7, 2012 · %# plot 3D line plot3(x,y,z) axis tight, grid on, view(35,40) Now if you want to draw a multi-colored line, the naive solution would be to write a for-loop, drawing each small …

  3. Stacking multiple 2D plots into a single 3D plot in MATLAB

    Jul 28, 2014 · I have multiple FFT plots and I want to show them together in one plot, something like the attached figure. I don't have any clue how to start. Any help would be appreciated!

  4. How to create a color gradient using a third variable in Matlab?

    Aug 8, 2017 · How do you create a color gradient in Matlab such that you plot a 2D line plot of y=y (x), and you color it using another variable that also depends on x such that z=z (x). A scatter …

  5. plot - Matlab: Animated Line in 3d - Stack Overflow

    Mar 28, 2016 · Let's say I have a nx3 matrix (in this example 100x3), where each column represents the x,y,z coordinate, in some discrete time sample, in 3d. I want to use the …

  6. Matlab plot multiple 3d lines - Stack Overflow

    Dec 5, 2013 · Do plot3([x1 u1],[y1 v1],[z1 w1]) to plot one line. Then type hold on and plot another line. This is the basic concept.

  7. How to do an animated plot in matlab - Stack Overflow

    16 I was wondering if anyone knew how to do an animation plot of x = (dataset of 1000 points) y = (dataset of 1000 points) plot (x,y) big problem is these are datasets that i am trying to plot , or …

  8. How to get vertical lines in a 3D scatter plot in matlab?

    Feb 16, 2019 · I have three matrices x, y, z which are plotted via scatter3 in matlab. However I also need vertical lines dropping from every point in the graph for better visualization. Using …

  9. How can I create a slice of a surface plot to create a line? (Matlab ...

    Jul 13, 2016 · Given some function z = f(x,y), I'm interested in creating a (1D) line plot along an arbitrary cutting plane in x,y,z. How do I do this in Matlab? Slice, for example, provides a …

  10. 3d - Matlab: Plot3 not showing the 3rd axis - Stack Overflow

    So I had the same problem when using plot3. For some reason, using the hold on command "flattens" the plot. I'm not sure why, but I suspect it has something to do with the operation …