soso
04-30-2008, 09:05 AM
HI FRIEND I AM STRANGE TO THIS FORUM, I HAVE 1 SMALL DOUBT PLEASE HELP ME .

I HAD MADE A THREE DIMENSIONAL PLOT FOR 3 VARIABLES EACH OF 36 DIFFERENT VALUES USING STEM3 PLOT .AS PER MY NEED I GOT IT.

IF I CHANGE THE PLOT COLOUR MEANS IT CHANGES THE ENTIRE PLOT COLOUR .BUT WHAT I FURTHER EXPECT IS FOR FIRST 6 SET OF READINGS IT SHOULD BE IN ONE COLOUR AND FOR NEXT 6 SET I NEED IN ANOTHER COLOUR(THEREBY 6 DIFFERENT COLOURS FOR WHOLE 36 PLOTS ) HOW CAN I MAKE THIS PLEASE HELP ME

my coding is as follows
clc
n=linspace(100,600,100);
X = (3.14.*(0.3).*n)/60;
Y =(3.14.*X.*(.0001))/4;
Z = 245770.2462./n;
stem3(X,Y,Z,'fill','k')
Xlabel('VELOCITY');
Ylabel('DISCHARGE');
Zlabel('TORQUE');

n=linspace(700,1200,100);
X = (3.14.*(0.3).*n)/60;
Y =(3.14.*X.*(.0001))/4;
Z = 245770.2462./n;
stem3(X,Y,Z,'fill','y')
Xlabel('VELOCITY');
Ylabel('DISCHARGE');
Zlabel('TORQUE');

n=linspace(1300,1800,100);
X = (3.14.*(0.3).*n)/60;
Y =(3.14.*X.*(.0001))/4;
Z = 245770.2462./n;
stem3(X,Y,Z,'fill','m')
Xlabel('VELOCITY');
Ylabel('DISCHARGE');
Zlabel('TORQUE');

n=linspace(1900,2400,100);
X = (3.14.*(0.3).*n)/60;
Y =(3.14.*X.*(.0001))/4;
Z = 245770.2462./n;
stem3(X,Y,Z,'fill','g')
Xlabel('VELOCITY');
Ylabel('DISCHARGE');
Zlabel('TORQUE');

n=linspace(2500,3000,100);
X = (3.14.*(0.3).*n)/60;
Y =(3.14.*X.*(.0001))/4;
Z = 245770.2462./n;
stem3(X,Y,Z,'fill','b')
Xlabel('VELOCITY');
Ylabel('DISCHARGE');
Zlabel('TORQUE');

n=linspace(3000,3600,100);
X = (3.14.*(0.3).*n)/60;
Y =(3.14.*X.*(.0001))/4;
Z = 245770.2462./n;
stem3(X,Y,Z,'fill','r')
Xlabel('VELOCITY');
Ylabel('DISCHARGE');
Zlabel('TORQUE');