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 Kommentare

David Hill
David Hill am 1 Apr. 2020
You need to show us your data arrays.
k
k am 2 Apr. 2020
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
David Hill
David Hill am 2 Apr. 2020
What are Op2 .... and tzzp2..... and Tp2....?
Srivardhan Gadila
Srivardhan Gadila am 6 Apr. 2020
@Khiana Rogers Can you provide the values of the variable Op's. Tp's & tzzp's

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

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

Gefragt:

k
k
am 1 Apr. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by