MATLAB: Where the errors in the code

matalbMATLAB

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

Best Answer

Add this line after your plot call:
set(gca, 'XTick',1:5, 'XTickLabel',{'wes', 'hts', 'ar', 'hy', 'nn'})