You have many replies as to what is the correct matlab code (see mine below) - note: with a frequency of 17.5Hz, you need a timestep of at least 10-100 time this to reproduce is clearly (
t = 0:0.001:10;
y = 1.2 * sin(35.000*pi*t + 2.15);
plot(t,y)

to add some insight into the the matlab error that you would have experienced at this step
y = y*time
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in
the first matrix matches the number of rows in the second matrix. To perform
elementwise multiplication, use '.*'.
for starters there is no need todo time*y as y is already a function of time. The error however is due to time being a 1x10 matrix and y is a 1x10 matrix.
By default "*" will attempt to perform matrix multiplication when both operands are matrix's. You cannot perform matrix multiplication on [1 x 10] by [1 x 10]. You can on [1 x 10][10 x 1] but that is nonsensical for this.
IF you did want to multiple two arrays together and they are [1 x n] then you can use the scalar operator
y.*time
which would produce a [1 x 10] matrix which is the result of an element by element multiplication.
HOWEVER, this isn't what you want so please review the multiple correct implementations shown here. You also missed the phase shift component (2.15) in your original question. NOTE: trig functions by default operate in radians