How to avoid printing certain values in axes of a plot?

4 ビュー (過去 30 日間)
Gayan Lankeshwara
Gayan Lankeshwara 2019 年 11 月 18 日
コメント済み: Gayan Lankeshwara 2019 年 11 月 18 日
I have the following plot
Since x-axis is the 'number of iterations' . I need to avoid prinitng float values.
What is want is only [1,2,3,4].
Below is my code.
Thank you.
for mm = 1:num_intervals
plot([1,2,3,4], CI')
end
xlabel('Iteration Number')
ylabel ('CI')
legend('App_1','App_2','App_3','App_4','App_5','App_6','App_7','App_ 8','App_9','App_{10}')
CI_variation.png

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 11 月 18 日
set(gca,'XTick',1:1:4)
  1 件のコメント
Gayan Lankeshwara
Gayan Lankeshwara 2019 年 11 月 18 日
Thank ypu very much Kalyan.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by