필터 지우기
필터 지우기

Where the errors in my code

조회 수: 1 (최근 30일)
abduall hassn
abduall hassn 2016년 4월 30일
편집: abduall hassn 2016년 11월 3일
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

채택된 답변

Star Strider
Star Strider 2016년 4월 30일
Add this line after your plot call:
set(gca, 'XTick',1:5, 'XTickLabel',{'wes', 'hts', 'ar', 'hy', 'nn'})
  댓글 수: 2
abduall hassn
abduall hassn 2016년 4월 30일
Thank u
Star Strider
Star Strider 2016년 4월 30일
My pleasure.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by