Colour depending on the radius of a cylinder.
1 view (last 30 days)
The goal is to plot multiple cylinders as a mesh of points with imperfections of the radius, which are generated randomly through MCS. Nevertheless the surf plot assigns the colour according to the height of the points. For better visualization i would like the colour to be dependend on the delta of the radius from the perfect cylinder.
pxI and pyI are matrices with the dimensions (number of points of the circle, number of points along the height, number of simulations) that contain the coordinates including the imperfections of each point.
pxI = pxS(:,:,i);
pyI = pyS(:,:,i);