Sie sind auf Seite 1von 2

(algunos)ComandosdeEstadsticadescriptivaenMatlab Histogramas hist(x); hist(x,N); [Count,BinCenter]=HIST(x,N)%ademadegraficar,recuperavalores) hist(x,INTER_center); inter=0.5:1:20.

1:20.5; histc(x,EDGES) F=hist(T,inter); stairs(inter,F) %otraformadegraficar bar(inter,F) stairs(inter,F/sum(F)) %histogramanormalizado(utilparasuperponerPDF) Distribucindefrecuenciaacumulada cdfplot(x) DiagramasBoxplot boxplot(X); %recuerdequetodaslasfuncionesoperanporcolumnas Percentiles prctile(x,VAL); %VALentre1y99%,VAL=25daelprimerquartil Estadgrafosdetendenciacentral mean(x); nanmean(x)%(cuandohayNan) median(x) mode(x) max(x);min(x) Estadgrafosdedispersin(spread) std(x); nanstd(x) IQR=prctile(x,75)prctile(x,25) var(x) Estadgrafosdeforma skewness(x); kurtosis(x);

ReformatearvectormatrizyVisualizacin SupongamosquetenemosobservacionesdeHRcada15mindurante302das,enun vectordelargoN=(60/15)*24*302.Algunasvecesqueremostenerloenformade matriz,demaneraquecadacolumnasealaHRaunahora(ominutodeterminado). Entonces: HRMat=reshape(x,24*4,302); EsogeneraunamatrizTMde153x48(latransposicinhacequelashorasquedenen lascolumnas). Sepuedevisualizarcon pcolor(TM); shadingInter.; mean(HRMat)obtendrunvectorde24*4elementosquecorrespondenalpromedio acadahoradelda(durantelos302dasdelamuestra). mean(HRMat,2)obtendrunvectorde302elementosquecorrespondenal promediodiario(obtenidadelos24*4muestrascadada).

Das könnte Ihnen auch gefallen