Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

could anyone help me how to solve the issue.

조회 수: 1 (최근 30일)
Prabha Kumaresan
Prabha Kumaresan 2018년 4월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
code:
N_rng=[1 2 23];
dummyX = 1:length(N_rng);
figure
plot(dummyX,Y,'rs');
hold on;grid on;
ax = gca;
ax.FontSize = 12;
ax.TickDir = 'out';
ax.TickLength = [0.02 0.02];
ax.XTick = dummyX;
ax.XTickLabel = N_rng;
The above code gives the graph. but how to get the numbers[1 2 23] in the plot command instead of rs. Could anyone help me to fix the issue

답변 (1개)

Abraham Boayue
Abraham Boayue 2018년 4월 4일
Try using the text funation in matlab.
  댓글 수: 1
Prabha Kumaresan
Prabha Kumaresan 2018년 4월 5일
do i need to use the following command,
text(dummyX,length,'N_rng')

태그

Community Treasure Hunt

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

Start Hunting!

Translated by