Matlab Plots: Color Each Point w/ Function

  • Context: MATLAB 
  • Thread starter Thread starter EngageEngage
  • Start date Start date
  • Tags Tags
    Matlab Plots
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 9K views
EngageEngage
Messages
203
Reaction score
0
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!
 
Physics news on Phys.org
figured out a solution! thank you for looking at my post