how to use for loop for my issue
I have 2560 sample points. I want to calculate mean variance skewness
kurtosis for first 512 points, next 512 so on. so totally 5 sets of output
data .I want to plot 5 sets of values of mean , var , skew , kur in a
graph.
I read a data from excel consisting of 2560 points
x=xlsread('dta.xls');
i=1:512;
y=x(i)
m=mean(y);
v=var(y);
i=513:1024;
y=x(i)
m=mean(y);
v=var(y);
i=1025:1536
y=x(i)
m=mean(y);
v=var(y);
plot(m)
plot(v)
like this my code s going. I tried using for loop but I couldn't able to
make it.
Tuesday, August 27, 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment