필터 지우기
필터 지우기

How to suppress the "1" from x-axis?

조회 수: 3 (최근 30일)
Sadiq
Sadiq 2023년 4월 29일
댓글: Sadiq 2023년 4월 29일
I want a figure between fitness vs PID gains. I get it but "1" is displayed on x-axis. How to suppress this "1" from x-axis? The required Mat file is hereby attached. The code is given below:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% By Star Strider on 19-10-2020-I used this one
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear all
close all
clc
load PIDGains
fitness2sn0=one;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Descending Order
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
fitness2sn0=sort(fitness2sn0,'descend');
figure
h1=boxplot([fitness2sn0].');
set(h1,{'linew'},{2})
grid
Ax = gca;
Ax.XLabel.String = '\bf PID Gains';
Ax.YLabel.String = '\bf fitness';
Ax.YScale = 'log';
Ax.YLim = [1E-7 1e-5];
title('\bf Fitness for Kp, Ki and Kd')
set(gca,'linew',2)

채택된 답변

Walter Roberson
Walter Roberson 2023년 4월 29일
  댓글 수: 1
Sadiq
Sadiq 2023년 4월 29일
Thank you very much dear Walter Roberson for your kind response. Indeed it works now.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by