I'm trying to do the revolution solid of a seccionated function as the following
And im using the following script
clc, clear all, close all
x = 1.983:0.1:10;
[X,Y,Z] = cylinder(1/2*sin(25/68*x-2.3)+4.25,20);
xlabel('x'); ylabel('z'); zlabel('y')
[X,Y,Z] = cylinder(1/2*sin(25/68*x-2.3)+3.97,20);
The problem is that it appears that the cylinder function restricts the vectors to the scope of 0 to 1. And i'm trying that the sine functions appears from 1.9 to 10 and it appears from 0 to 1. This is the result that I get.