%% Historico aula 7
help input
what
help zip
dir
unzip TCABR_2_Matlab
addpath C:\Users\zwinglio\Documents\MATLAB\TCABR_2_Matlab\ -end
home
help leia_TCABR
edit leia_TCABR.m
leia_TCABR( 25285, 'OPS' )
help exist
home
clear
home
path
edit figuras_disparo.m
[Yj,i] = std_em_janelas( randn(1e4,1), 1e3 )
[Yj,i] = std_em_janelas( randn(3e3,1), 1e3 )
[Yj,i]=std_em_janelas(randn(3e3,1), 1e3)
home
[Yj,i]=std_em_janelas(randn(3e3,1), 1e3)
[Yj,i]=std_em_janelas(randn(3e3-1,1), 1e3)
[Yj,i]=std_em_janelas(randn(3e3-1,1), [1e3 100])
[Yj,i]=std_em_janelas(randn(3e3+1,1), [1e3 100])
[Yj,i]=std_em_janelas(randn(1e2,1), [1e3 100])
edit testa_std_em_janelas
figure( 'position', [50 50 800 700] )
figure( 'position', [50 50 800 650] )
plot( tn, '.' )
plot( diff(tn), '.-' )
help dtrend
help detrend
X = [ 1 3 4 5 7 8 ]
detrend( X )
help skewness
home
X = yn;
[Yj,ind] = ...
coisas_em_janelas( X, [100 10], 'median' );
figure, plot( ind, Yj, '.' )
figure, plot( ind(:,1), Yj, '.' )
[Yj2,ind] = ...
coisas_em_janelas( X, [100 10], 'mean' );
figure, plot( ind(:,1), [Yj Yj2], '.' )
whos
[Yj,ind] = ...
coisas_em_janelas( X, [100 10], 'median' );
[Yj2,ind] = ...
coisas_em_janelas( X, [100 10], 'mean' );
figure, plot( ind(:,1), [Yj Yj2], '.' )
home
help inline
tm = @(t)mean(t,2)
tm( [1 2] )
tm( [1 2; 3 4] )
figure, plot( tm( tn(ind) ), [Yj Yj2], '.' )
[Yj,ind] = ...
coisas_em_janelas( X, [100 10], @(x)mean(detrend(x)) );
[Yj,ind] = ...
coisas_em_janelas( X, [100 10], @(x)mean(detrend(x)) );
[Yj,ind] = ...
coisas_em_janelas( X, [100 10], @(x)mean(detrend(x)) );
figure, plot( Yj )
[Yj,ind] = ...
coisas_em_janelas( X, [100 10], @(x)[mean(x) std(x)] );
size( Yj )
