MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Student
on 28 Aug 2013

How to plot a given signal e.g.

x(n)=cos(pie*n/2)-sin(pie*n/8)+3cos(n*pie/4+pie/3)

in such a way that plotting proves its periodicity??

*No products are associated with this question.*

Answer by Shashank Prasanna
on 28 Aug 2013

Student, this is simple plotting in MATLAB. Take a look at the documentation:

http://www.mathworks.com/help/matlab/ref/plot.html

If this is an assignment problem and you have more of these to solve, it would help to invest some time on the getting started section of MATLAB:

http://www.mathworks.com/help/matlab/getting-started-with-matlab.html

Answer by Walter Roberson
on 28 Aug 2013

No, you cannot prove something has infinitely extending properties just by examining any finite subset of it. Try, for example, plotting in the area of n = 10^100

## 1 Comment

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/85842#comment_166360

http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags