How to plot semilog y graphic in Matlab?
1 次查看(过去 30 天)
显示 更早的评论
Hi;
I have a .txt file with two columns.. Second column is between 180.2E+03 and 11.5. I want to plot second column as a semilog(y) axis. I want the first column to stay in linear X axis. Could you please help me? How can I do this?
You can find file in the attached .txt file.
Thank you..
0 个评论
采纳的回答
Massimo Zanetti
2016-10-12
编辑:Massimo Zanetti
2016-10-12
The matlab function semilogy() is what you need:
A=textread('test_1.txt');
semilogy(A(:,1),A(:,2));
grid on;
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!