how can i find the mean and standard deviation of a plot????
Afficher commentaires plus anciens
sir.... with this code i find out the notch and low pass response of a given data.... how can i find the standard deviation and mean of the plot????
fid = fopen('filename.txt'); datacell= textscan(fid,'%f%f%f%*[^\n]',... 'delimiter','\t'); fclose(fid); A = datacell{2}; B=datacell{3}; C=A-B; A1= squeeze( sum( reshape(A, 40, [], 1) ) ); B1=squeeze( sum( reshape(B, 40, [], 1) ) ); C1=A1-B1; subplot(3,1,1); stem(C1); b=[0.69977431651797461 -0.1814575955924495 1.4113120181091672 -0.18145759559244945 0.69977431651797473]; a=[1 -0.21440197757618362 1.3190484139225416 -0.148513213608716 0.491812237222576]; y =filter(b,a,C1); subplot(3,1,2); stem(y); d=[0.0000089848614639706426 0.0000035939445855882617 0.0000053909168783823964 0.0000035939445855882685 0.00000089848614639706807] e=[1 -3.8358255406473472 5.5208191366222277 -3.5335352194630145 0.8485559996647685] z=filter(d,e,C1); subplot(3,1,3); stem(z);
2 commentaires
Ruby
le 16 Fév 2014
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Annotations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!