필터 지우기
필터 지우기

how to change the xmarkings of graph

조회 수: 2 (최근 30일)
Elysi Cochin
Elysi Cochin 2018년 4월 2일
답변: Image Analyst 2018년 4월 2일
i have plotted a graph, i want its xlim to be from 3 to 7, mine is showing 1 to 5. When i do xlim([3 7]) only the last 3 values come. how to change the xmarkings

채택된 답변

Image Analyst
Image Analyst 2018년 4월 2일
You did it right. When you call xlim([3 7]) only data values between x=3 and x=7 will be plotted. In your two plots, you are not plotting the same arrays. For example, you have values at x=4 for the left graph but not for the right graph, and the y values for x=5 on the left are nowhere close to the y values for x=5 on your right plot. Also your left graph has 3 curves while your right graph has 4 curves. But if you had plotted the same thing in both plots, it would have been correct.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by