Where the errors in my code

2 visualizaciones (últimos 30 días)
abduall hassn
abduall hassn el 30 de Abr. de 2016
Editada: abduall hassn el 3 de Nov. de 2016
From figure I want to labe X-Axis wes hts ar hy nn
This is code i used
figure;
plot( c, '-r','LineWidth', 3);
hold on
plot( fcm, '-b','LineWidth', 3);
hold on
plot( rkm, '-m','LineWidth', 3);
legend('Conventional models ',...
['Enhanced model by FCM'],...
['Enhanced model by RKM'],...
'Location', 'northeast');
title('Performance improvement with respect to MSE');
I want to put name of method (wes, hts, ar, hy, nn ) on label X-Axis, Instead of the values that displayed on X-Axis
Thank u

Respuesta aceptada

Star Strider
Star Strider el 30 de Abr. de 2016
Add this line after your plot call:
set(gca, 'XTick',1:5, 'XTickLabel',{'wes', 'hts', 'ar', 'hy', 'nn'})
  2 comentarios
abduall hassn
abduall hassn el 30 de Abr. de 2016
Thank u
Star Strider
Star Strider el 30 de Abr. de 2016
My pleasure.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by