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

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 Exchange에서 Axes 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