%% Historico da aula 5
disp( 'ola, tenha um bom dia' )
edit startup
cd aula_4
cd
cd ..
home
what
edit compara_tamanhos.m
dir
help hist
[ Yh, Xh ] = hist( tamanhos, 1:20 );
Xh
Yh
bar( Xh, Yh )
help bar
bar( Xh, Yh, 1 )
bar( Xh, Yh, 1.2 )
bar( Xh, Yh, 1.5 )
Yh
YhN = [ Yh(:,1)/sum(Yh(:,1))    Yh(:,2)/sum(Yh(:,2)) ]
hist( Xh, YhN, 1.5 )
figure, bar( Xh, YhN, 1.5 )
YhN = [ Yh(:,:)/sum(Yh(:,:)) ]
sum( Yh )
YhN = [ Yh ./ ( sum(Yh) ) ]
ones(5,1)*ones(1,2)
YhN = [ Yh ./ ( ones(size(Yh,1),1)*sum(Yh) ) ]
help repmat
YhN = [ Yh ./ repmat( sum(Yh), size(Yh,1), 1 ) ]
help /
help mrdivide
bar( Xh, 100*YhN, 1.5 )
xlim( [0 21] )
set( gca, 'xtick', 1:20 )
set( gca, 'xtick', 2:2:20 )
set( gca, 'xtick', 1:20 )
set( gca, 'xtick', 1:20, 'tickdir', 'out' )
set( gca, 'xticklabel', {'' '2' '' '4' '' '6' '' '8' '' '10'} )
set( gca, 'xticklabel', {'Janeiro' 'Fevereiro'} )
set( gca )
bar( Xh, 100*YhN, 1.5 )
set( gca, 'FontAngle', 'oblique' )
set( gca, 'FontAngle', 'italic' )
set( gca, 'FontAngle', 'normal' )
set( gca, 'fontsize', 20 )
set( gca, 'FontAngle', 'oblique' )
set( gca, 'FontAngle', 'italic' )
get( gca, 'children' )
h = get( gca, 'children' )
set( h(1) )
set( h(2) )
set( h(1), 'FaceColor', 'c' )
gcf
get( gca, 'parent' )
get( h(1), 'parent' )
gca
h
set( h(1), 'FaceColor', 'r' )
get( gca, 'children' )
set( h(1), 'FaceColor', 'b' )
get( gca, 'xminorTick' )
get( gca, 'xminorTick', 'on' )
set( gca, 'xminorTick', 'on' )
xlabel( '\alpha' )
handle = xlabel( '\alpha' )
set( handle, 'interpreter', 'none' )
set( handle, 'interpreter', 'tex' )
set( handle, 'interpreter', 'latex' )
xlabel( '\alpha', 'interpreter', 'tex' )
xlabel( '\alpha', 'interpreter', 'latex' )
xlabel( '$\alpha$', 'interpreter', 'latex' )
ylabel( '$\frac{1}{\sigma}$', 'interpreter', 'latex' )
ylabel( '$$\frac{1}{\sigma}$$', 'interpreter', 'latex' )
home
Xm = sum( Xh.*Yh ) ./ sum( Yh )
sX = sqrt( sum( (Xh.^2).*Yh ) ./ sum( Yh ) - Xm.^2 )
home
clear
home
edit histograma_letras
LISTA(1:10)
char(LISTA(1:10))
[ Yhl, Xhl ] = hist( LISTA, 1:256 )
[ Yhl, Xhl ] = hist( LISTA, 1:256 );
Yhl(Xhl>0)
Xhl(Yhl>0)
Xnao0 = Xhl(Yhl>0);
Ynao0 = Yhl(Yhl>0);
[ Xnao0(:) Ynao0(:) ]
double('a')
double('z')
clear
home
sort
help sort
[ a, b ] = sort( [1; 3; 2; 5; 4] )
x = [1; 3; 2; 5; 4 ]
x = 2*[1; 3; 2; 5; 4 ]
[ a, b ] = sort( x )
x
a
x(b)
help sort
