I want to change level of sine wave from 0-32. right now the below code generate y-axis from -64 to 64. I want to make it center at 32 not at 0. so how can i shift the level so that the center would be 32 not 0. it means y-axis would shift from 0 to 64 with center at 32. kindly help in this regard. Thanks
fs=500e3;
f=10e3;
nCyl=5;
t=0:1/fs:nCyl*1/f;
x=64*sin(2*pi*f*t);
plot(t,x)
0 Comments
Sign in to comment.