Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Suppose you have a discrete function Triangle[n/5]. How would you plot it in mathetica?

share|improve this question

closed as off-topic by Sjoerd C. de Vries, RunnyKine, Artes, Yves Klett, István Zachar Nov 6 '13 at 12:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Sjoerd C. de Vries, RunnyKine, Artes, Yves Klett, István Zachar
If this question can be reworded to fit the rules in the help center, please edit the question.

    
I don't think Triangle is a discrete function? It's a periodic piecewise linear waveform, however it can only be used in the context of the command Waveform if I understand it correctly. It belongs to the Audio package, which I have never used. –  Pickett Nov 6 '13 at 7:49
3  
There's a DiscretePlot function in Mathematica –  RunnyKine Nov 6 '13 at 7:57

1 Answer 1

up vote 2 down vote accepted
 DiscretePlot[UnitTriangle[n/5], {n, -5, 5}]

Mathematica graphics

share|improve this answer
1  
But really, this could have been only a 5 second search in the documentation. –  Sjoerd C. de Vries Nov 6 '13 at 8:15

Not the answer you're looking for? Browse other questions tagged or ask your own question.