Matlab Plots: Color Each Point w/ Function

  • Topic: MATLAB 
  • Thread starter EngageEngage
  • Start date
  • Tags Tags
    Matlab Plots
1 reply · 9K views · last reply
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!
 
figured out a solution! thank you for looking at my post