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