I have data for these elements but I get mistake when I tried to plot. I want code for it
how can I write *10^3 on y-axis
thanks

3 件のコメント

David Hill
David Hill 2022 年 7 月 26 日
Walter Roberson
Walter Roberson 2022 年 7 月 26 日
To force thd 10^3 then
ax = gca;
ax.YAxis.Exponent = 3;
dpb
dpb 2022 年 7 月 26 日
tiledlayout is the modern recommdation in lieu of subplot

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

 採用された回答

Chunru
Chunru 2022 年 7 月 27 日

0 投票

% [1 2][3 4]
% [6 7]
h(1) = subplot(2, 4, [1 2]); % 4x2 grid, 1st subplot
plot(randn(10, 1));
h(2) = subplot(2, 4, [3 4]); % 4x2 grid, 2nd subplot
plot(randn(10, 1));
h(3) = subplot(2, 4, [6 7]); % 4x2 grid
plot(randn(10, 1)*10000);
h(3).YAxis.Exponent=3;

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAxes Appearance についてさらに検索

タグ

質問済み:

Lee
2022 年 7 月 26 日

回答済み:

2022 年 7 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by