how to plot a graph in log base 10 scale on the x axis
8 views (last 30 days)
Show older comments
Can anyone help with the proper syntax to plot a graph in log base 10 scale for example with f on the x -axis(log base 10 scale ) and ZB on the y -axis for this expression:
for f = [1 4 10 12 17 19 24 26 34 38];
m = 10;
Zcb = 104.5;
Zo = (1 + (0.055*(1-1i))/sqrt(f));
n = 800 ;
x = 1;
P = 800;
Z1 = 1+((m)*sin(2*pi*n*x/P));
ZB = abs(Zcb*Zo*Z1);
end
2 Comments
Simon
on 1 Oct 2013
What is the loop for? What values does f have? The ones you write in the first line? If so, they are never used in the calculation!
Answers (1)
Walter Roberson
on 1 Oct 2013
You need to fix your "for" loop the way I showed you in your previous question.
See Also
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!