Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

could anyone help me how to solve the issue.

1 visualización (últimos 30 días)
Prabha Kumaresan
Prabha Kumaresan el 4 de Abr. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

Abraham Boayue
Abraham Boayue el 4 de Abr. de 2018
Try using the text funation in matlab.
  1 comentario
Prabha Kumaresan
Prabha Kumaresan el 5 de Abr. de 2018
do i need to use the following command,
text(dummyX,length,'N_rng')

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by