how to plot real and imag parts for this signal x(t) = cos(t/4)+cos(3*t/4)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nawaf al raiqi
am 5 Dez. 2020
Beantwortet: Image Analyst
am 5 Dez. 2020
x = cos(t/4)+cos(3*t/4)
for this signal how i plot the real and imag parts
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 5 Dez. 2020
Why do you think there might be any imaginary parts?
Try this:
t = linspace(-2*pi, 2*pi, 1000);
x = cos(t/4)+cos(3*t/4);
plot(t, x, 'b-', 'LineWidth', 2);
grid on;
xlabel('t', 'FontSize', 20);
ylabel('x', 'FontSize', 20);
but if t were complex, you could plot real(x) and imag(x) instead of x.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!