Repeating Half-range Cosine Function every pi?
Afficher commentaires plus anciens
Hello,
I want to plot half-range periodic cosine function of period (2*pi) between that repeats itself every (pi) from(-3*pi to 3*pi) with no connection between any sample. Any ideas?
Regards,
4 commentaires
David Sanchez
le 12 Juil 2013
your link is a bit tricky, what if contributors do not have a gmail account? At least for me, It was not possible to watch the plot from the link.
Jan
le 12 Juil 2013
@mohammed: Please explain it with an "[EDITED]" tag, if you change the message. Now David's comment looks a little bit silly.
Mohammed Sayan
le 12 Juil 2013
Mohammed Sayan
le 12 Juil 2013
Réponses (2)
Jan
le 12 Juil 2013
0 votes
How can a function be 1. between 0 and pi and 2. repeat from -3*pi to 3*pi?
I assume all you need is x=linspace..., y=cos... and plot(x, y, '.'). Therefore I suggest to try it by your own at first and ask a specific question if it does not work.
Mohammed Sayan
le 12 Juil 2013
Catégories
En savoir plus sur Performance and Memory dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!