MATLAB Matlab Plots: Color Each Point w/ Function

  • Thread starter Thread starter EngageEngage
  • Start date Start date
  • Tags Tags
    Matlab Plots
AI Thread Summary
The discussion revolves around the challenge of assigning colors to individual points in a 3D plot using the plot3d command, with a focus on finding a more efficient method than using a loop. The original poster sought a single-command solution to improve performance. Ultimately, they reported successfully finding a solution to their problem, expressing gratitude for the assistance received.
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
1
Views
2K
Replies
32
Views
4K
Replies
9
Views
3K
Replies
2
Views
3K
Replies
3
Views
2K
Replies
4
Views
2K
Back
Top