Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Help with HW question regarding Sine waves

1 visualización (últimos 30 días)
JM
JM el 26 de En. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I may be greatly overthinking this, but I want to make sure since I am new to Matlab.
The question requires me to create a sine-like wave from 1 radian to 30 radians, with 1 radian increments.
I have programmed it as follows
x = (1:1:30)
y = sin(x)
plot (x,y)
Is this the correct approach? Thank you.

Respuestas (1)

Star Strider
Star Strider el 26 de En. de 2018
It looks correct to me.
  1 comentario
Rik
Rik el 26 de En. de 2018
You could also have a look at the documentation. For most functions it contains several examples. The documentation for sin explicitly states that it uses radians.

La pregunta está cerrada.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by