필터 지우기
필터 지우기

Graph with origin other than zero

조회 수: 11 (최근 30일)
rej
rej 2015년 3월 3일
댓글: Luuk van Oosten 2015년 3월 3일
Hello, I have a questions regarding plotting data in graphs. I have data for two scales ranging from 1-10, which I would like to plot on the x- and y-axis in a graph. However I would like to have the axes crossing in scale point 5 in each of the axis. I.e. I want the origin to be in 5 instead of 0.
Would be very thankful for help in this!

답변 (1개)

Luuk van Oosten
Luuk van Oosten 2015년 3월 3일
편집: Luuk van Oosten 2015년 3월 3일
There is a variety of things you could do to achieve this. An example; set the axis range using:
axis([ xmin xmax ymin ymax ])
so in your case that would be something like:
axis([ 5 10 5 10])
You might want to have a look here.
  댓글 수: 2
rej
rej 2015년 3월 3일
Thanks a lot!! This was what I needed :)
Luuk van Oosten
Luuk van Oosten 2015년 3월 3일
You are welcome. Could you accept my answer in that case?

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

카테고리

Help CenterFile 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