Plot using semilogx()

I'm trying to use "semilogx()" in my code but it's not working. The data that it I'm trying to graph prints correctly in the workspace and the graph prints with the correct axis labels but my data isn't showing up.
Any suggestions for what I could add to my code and/or how to fix it? I have MATLAB_2016a.

4 个评论

You need to show us your data arrays.
Op = [Op2 Op3 Op4 Op5 Op6 Op7 Op8];
PP = [tzzp2/Tp2 tzzp3/Tp3 tzzp4/Tp4 tzzp5/Tp5 tzzp6/Tp6 tzzp7/Tp7 tzzp8/Tp8];
phip = -360 * (PP);
figure;semilogx(Op,phip);
these are my four lines of code which should produce the graph
What are Op2 .... and tzzp2..... and Tp2....?
@Khiana Rogers Can you provide the values of the variable Op's. Tp's & tzzp's

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by