I want to plot a graph for z by increasing the values of i from 0.0000 to 0.0001 increasing with step of 0.0002.

for i:=0:0.00002:0.0001;
a=-(cos(363.2*1i/2)*log2(cos(363.2*1i/2)).^2);
b=-44*((100./363.2).^2)*sin(363.2*1i/2);
c=-log2(44*(100./363.2).^2)*(sin(363.2*1i/2).^2);
z=a+b+c;
end
plot (z,i);

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 12 Aug. 2015
Bearbeitet: Azzi Abdelmalek am 12 Aug. 2015
You have several errors in your code. := doesn'texist in matlab (use the operator =). plot(z,i) will plot one point (the last point)

Weitere Antworten (0)

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by