Plot function y=(sin(x))/x for pi/100<=x<=10pi using increments of pi/100
76 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alexander Ashari
el 27 de Mzo. de 2021
Comentada: Muhamad Khaleesh Mirza
el 8 de Sept. de 2022
How do we write in this on MATLAB?
1 comentario
Muhamad Khaleesh Mirza
el 8 de Sept. de 2022
How to Plot the function y=10 sin (π t) between -π<x< π
Respuesta aceptada
Sulaymon Eshkabilov
el 27 de Mzo. de 2021
Editada: Sulaymon Eshkabilov
el 27 de Mzo. de 2021
% Start rightaway by defining the variable x and compute it
x = pi/100:pi/100:10*pi;
y = sin(x)./x;
% plot
plot(x, y) % You may need to adjust plotted data line type, color, marker type, etc.
Más respuestas (1)
Jan
el 27 de Mzo. de 2021
Editada: Jan
el 28 de Mzo. de 2021
"pi/100<=x<=10pi using increments of pi/100"
x = pi/100:pi/100:10*pi;
The rest is trivial. Please try it. In case of problems post your code and an explanation of the errors.
If you want to divide one vector by another one elementwise, use ./ instead of /
3 comentarios
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!