mplot3d: Varying line color proportionally with a scalar


I’m trying to implement the following: x,y,z,s are arrays of same size. I’m plotting x,y,z in Axes3D but I’m unable to change its color proportionally with s; like to be able to change its intensity w.r.t ‘s’ (just an example). Please let me know the method if it is possible to do such a plot.