Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Colors in matlab plots

  1. Oct 11, 2008 #1
    Hi, i've been working on figuring out how to make each point in a plot a color specified by a function that I wrote. I was wondering if anyone knew how to do this in a single command. The only way i have though of making this work is with a loop that goes through each individual point and assigns a color which is incredibly slow and inefficient. I use the plot3d command. If anyone could help me out I would appreciate it greatly!
  2. jcsd
  3. Oct 11, 2008 #2
    figured out a solution! thank you for looking at my post
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Colors in matlab plots
  1. Plotting in MATLAB (Replies: 8)

  2. Plotting with MATLAB (Replies: 1)