bluemood
Specifier/Regulator
- Dec 11, 2002
- 5
Hello,
I am having problem with using different colors base on the the various cmd in the for loop. I apply the suggested solution provided in one of the past threads but I am not able to get the result. I don't understand what the error message is reporting. Can someone help me? Many Thanks in advance.
C=['r.' 'g.' 'b.' 'c.'];
for ht = 0
num-1)
for cmd = 1:4,
idx = (find(new_h == ht & new_cmd == cmd));
[r] = ind2sub(idx, [idx]);
chs = [new_cmd, new_c, new_s];
cmdgroup = chs([r],
;
c = cmdgroup
,2);
s = cmdgroup
,3);
cmd = cmdgroup
,1);
plot(c, s, C(cmd));
axis ([-5000 40000 -100 900]);
hold on;
end;
end;
======================================================
Error message :
??? Error in color/linetype argument
On line 49 ==> plot(c, s, C(cmd));
I am having problem with using different colors base on the the various cmd in the for loop. I apply the suggested solution provided in one of the past threads but I am not able to get the result. I don't understand what the error message is reporting. Can someone help me? Many Thanks in advance.
C=['r.' 'g.' 'b.' 'c.'];
for ht = 0
for cmd = 1:4,
idx = (find(new_h == ht & new_cmd == cmd));
[r] = ind2sub(idx, [idx]);
chs = [new_cmd, new_c, new_s];
cmdgroup = chs([r],
c = cmdgroup
s = cmdgroup
cmd = cmdgroup
plot(c, s, C(cmd));
axis ([-5000 40000 -100 900]);
hold on;
end;
end;
======================================================
Error message :
??? Error in color/linetype argument
On line 49 ==> plot(c, s, C(cmd));