How to plot the graph of cos function for specific value of Pi in Matlab? -


for specific function,

x(n) = cos(ωn+θ) , ω = π/6 , , θ = π/3

i unable plot graph.

for general cosine function, can plot using:

x = -pi:0.01:pi; plot(x,cos(x)) 

but how plot graph specific pi values of omega , theta?

other defining constants first...

w = pi/6; th = pi/3; = 1; 

then plotting them?

n = -pi:0.01:pi; plot(n, a*cos(w*n + th) ); 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -