Why its showing error in array factor?
Ältere Kommentare anzeigen
theta=-2*pi:0.001:2*pi;
A(theta)= 1+exp(j.*(pi/3)-j*(3*pi/4)*cos(theta))+exp(-j.*(pi/3)-j*2*(3*pi/4)*cos(theta));
AF(theta) = abs(A(theta));
plot(theta,AF(theta));
Array indices must be positive integers or logical values.
Error in Untitled (line 2)
A(theta)= 1+exp(j.*(pi/3)-j*(3*pi/4)*cos(theta))+exp(-j.*(pi/3)-j*2*(3*pi/4)*cos(theta));
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!