Matlab Plots: Color Each Point w/ Function

  • Context: MATLAB 
  • Thread starter Thread starter EngageEngage
  • Start date Start date
  • Tags Tags
    Matlab Plots
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
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
8K