Borrar filtros
Borrar filtros

Graphing the sine graph

1 visualización (últimos 30 días)
Dakalo
Dakalo el 29 de Feb. de 2024
Comentada: Les Beckham el 29 de Feb. de 2024
Hey Guys, I am currently learning how to use Matlab and I have a problem that I am struggling with. I am struggling to graph the function y = sin^2(t) on the interval t ∈ [0,2π]. Can you please help me this?
  5 comentarios
Dakalo
Dakalo el 29 de Feb. de 2024
@Sam Chak Okay thank you. I will make use of it.
Les Beckham
Les Beckham el 29 de Feb. de 2024
If you are just getting started with Matlab, I would highly recommend that you take a couple of hours to go through the free online tutorial: Matlab Onramp

Iniciar sesión para comentar.

Respuesta aceptada

Alexander
Alexander el 29 de Feb. de 2024
t = linspace(0,2*pi,1000);
y = sin(t).^2;
plot(t,y);
  5 comentarios
Alexander
Alexander el 29 de Feb. de 2024
Cheers
Sam Chak
Sam Chak el 29 de Feb. de 2024
@Dakalo, Can you enter the code (click this icon ) and run it here (click this icon )?
A grey field will appear so that you can type out the plotting code. You should also learn about labeling and display trick for repeating decimals such as .

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by