Message Boards Message Boards

0
|
5529 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Plot a sawtooth pulse wave?

Posted 6 years ago
POSTED BY: Nathan Olszewski
2 Replies

Like this?

Show[Plot[SawtoothWave[x], {x, #[[1]], #[[2]]},
    (*Plot options.*)
    PlotRange -> {{-12, 12}, All},
    ExclusionsStyle -> Dashed(*Plot*)] & /@ {{-2,0.1(*to get the dashes*)}, {1, 5.1}, {9, 10.1}}(*Show*)]
POSTED BY: Isaac Abraham

Roll your own?:

sw[x_, a_: 0] := Max[0, Mod[x - a, 1 + a, -a]];
Plot[sw[x, 1], {x, -5, 5}]
POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract