필터 지우기
필터 지우기

Matlab plot disappears after editing X and Y limits

조회 수: 10 (최근 30일)
Adeyemi Adegbenjo
Adeyemi Adegbenjo 2024년 2월 6일
답변: Taylor 2024년 2월 6일
Plotted matlab spectra data plot (transmittance against wave bands). My wave bands were in band numbers and trying to change to wavelength real values in nm, i neeeded to edit Y axis and X axis limits and my plot disappears. How can i display my plot back with the new modified X and Y axis labels. I am using Matlab release R2023b.

채택된 답변

Taylor
Taylor 2024년 2월 6일
Difficult to say without seeing the actual code, but you can try something like this:
ax = gca;
ax.XLim = [1 10]; % Use your values here
ax.YLim = [1 10]; % Use your values here
ax.XLabel = "Your Label Here";
ax.YLabel = "Your Label Here";

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by