Problem with piecewise Plots
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
The following commands do not show the last point of the graph of the function. Can someone explain why?
syms f(t)
f(t) = piecewise(0<=t<2*pi,2,t==2*pi,0);
fplot(f,[0 2*pi],'r*--')
xlim([0 7])
ylim([-1 5])
1 comentario
Respuestas (1)
Torsten
el 23 de Feb. de 2023
Editada: Torsten
el 23 de Feb. de 2023
:-)
syms f(t)
f(t) = piecewise(0<=t<2*pi,2,2*pi<=t<=2*pi+0.001,0);
fplot(f,[0 2*pi+0.001],'r*--')
xlim([0 7])
ylim([-1 5])
1 comentario
Askic V
el 23 de Feb. de 2023
:) almost exactly the same. I replaced 0<=t<2*pi this part as Matlab suggested itself.
Ver también
Categorías
Más información sobre Assumptions 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!