insert colour

edited June 2011 in Science & Tech
I've created a graph based on the following data below. My attempts to insert color into the file don't seem to be working - I've left a working copy to illustrate the graph, but could I get some pointers on inserting color into this type of graph.

Cheers

clear all;
numx=10;
numy=40;      
x=zeros(1,numx*numy);
y=zeros(1,numx*numy);
z=zeros(1,numx*numy);
RETG=0.99;
nnn=1;
for  nx=1:numx
     for  ny=1:numy
       x(nnn)=0.1*(1.0*nx)/(1.0*numx);
       y(nnn)=1.0*(1.0*ny)/(1.0*numy);
       z(nnn)=1.0/(1+((1/y(nnn))-1.0)*(x(nnn)/RETG) );
       nnn=nnn+1;      
   end
end
scatter3(x,y,z);

Comments

  • TushonTushon I'm scared, Coach Alexandria, VA Icrontian
    edited June 2011
    Sometimes* some googling can do a world of good

    http://www.mathworks.com/help/techdoc/ref/plot.html


    *always
  • edited June 2011
    Okay. I'll give that a miss. It took me four and a half hours wasting my time on that one. I'm currently working 7 days a week, growing stem cells, watching them die, living in a sleeping bag (I don't have time to get a bed), leaving at 1am most nights. There's just not enough time in the day!
  • shwaipshwaip bluffin' with my muffin Icrontian
    edited June 2011
    your question is too vague. "I want to insert color into this graph" could mean many things. What exactly do you want to color?
Sign In or Register to comment.