Akzeptierte Antwort

KSSV
KSSV am 25 Jan. 2021

0 Stimmen

Read about element by element operations.
k = -2:0.1:2;
g = ((2*cos(2*k))-2)./(1i*k); % use ./
plot(k,abs(g))
hold on
plot(k,real(g))
plot(k,imag(g))
legend('abs','real','imaginary')

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 25 Jan. 2021

Beantwortet:

am 25 Jan. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by