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
Post a Comment