How to plot sawtooth wave sawtooth function?

2 visualizaciones (últimos 30 días)
Issie
Issie el 1 de Dic. de 2018
Editada: Issie el 6 de Dic. de 2018

Respuesta aceptada

Star Strider
Star Strider el 1 de Dic. de 2018
You are very close.
Try this:
f = @(x) rem(x+3,2)-1
figure
fplot(f, [-3,3])
It offsets the ‘x’ value, subtracts 1 so the limits are appropriate, then does the plot.
It may not be universally applicable, for all ‘x’. It works here for this particular problem.

Más respuestas (0)

Categorías

Más información sobre App Building en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by