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);

 Accepted Answer

You have several errors in your code. := doesn'texist in matlab (use the operator =). plot(z,i) will plot one point (the last point)

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!