how to plot the log scale for the following values ?

1 次查看(过去 30 天)
x = [2.51 ;2.55; 2.56]; y = 10:10:30; semilogy(x,y,'bo-');
Not getting the log scale on Y axis.
  2 个评论
jonas
jonas 2018-8-21
@Shannon: Write an answer instead of a comment! You get some credits and the question is flagged accordingly.

请先登录,再进行评论。

回答(2 个)

Shannon Cherry
Shannon Cherry 2018-8-21
Use loglog instead of semilogy. Type 'doc loglog' for explanation.

Dimitris Kalogiros
Dimitris Kalogiros 2018-8-21
clear; close all; clc;
x = [2.51 ;2.55; 2.56];
y = 10:10:30;
loglog(x,y,'bo-');
grid on; zoom on;

类别

Help CenterFile Exchange 中查找有关 Log Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by