Hi.
I have some tracts and i can plot them using plot3. I would like to give to each tract a color, using some information about the relative distance between the first and last point of that tract.
For example: Tract1 goes from (1,1,1) to (6,8,12). So: Diff is (5,7,11).
I know that RGB codes are something like [1 0 0] or [1 0.4 0.6]. With this i made [(Diff(1)/(Diff(1)+Diff(2)+Diff(3)) (Diff(2)…) (Diff(3)…)] but it gives me this error: 'Error in color/linetype argument'.
How can i solve this?
Thanks in advance
Best Answer