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
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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