how to plot the log scale for the following values ?

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.
Thanks, I'm new to this and this was my first answer.

댓글을 달려면 로그인하십시오.

답변 (2개)

Shannon Cherry
Shannon Cherry 2018년 8월 21일

1 개 추천

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;

카테고리

도움말 센터File Exchange에서 Log Plots에 대해 자세히 알아보기

태그

질문:

2018년 8월 21일

답변:

2018년 8월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by