how to set the subplot label

조회 수: 2 (최근 30일)
Roger
Roger 2013년 12월 21일
댓글: Image Analyst 2013년 12월 22일
how to delete the x10e4 at the end of the xaxis
clc;close all;clear all;
s=load('first.txt');
N=3600*24;
t=1:N;
x=s(1:N);
[c,l]=wavedec(x,7,'db5');
for j=1:7
a=wrcoef('a',c,l,'db5',8-j);
subplot(7,2,2*j-1)
plot(a);axis tight
ylabel(['a',num2str(8-j)]);
end
for j=1:7
d=wrcoef('d',c,l,'db5',8-j);
subplot(7,2,2*j)
plot(d);axis tight
ylabel(['d',num2str(8-j)]);
end

채택된 답변

Walter Roberson
Walter Roberson 2013년 12월 21일
There is no specific control over whether the label is in scientific notation or not. MATLAB does that automatically with unknown rules.
It is known, however, that MATLAB will turn that off for any axes in which you set the *TickLabel yourself. For example,
set(gca, 'XTickLabel', cellstr(num2str(reshape(get(gca, 'XTick'),[],1))) )
  댓글 수: 2
Roger
Roger 2013년 12월 22일
if i use 'axis tight', the xtick is covered
Image Analyst
Image Analyst 2013년 12월 22일
Can you try a smaller font?
set(gca, 'FontSize', 8); % Or whatever it takes to read it.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by