For anyone interested, try this:
https://es.mathworks.com/matlabcentral/fileexchange/64007-generate-cylinder-with-custom-axis
https://es.mathworks.com/matlabcentral/fileexchange/64007-generate-cylinder-with-custom-axis