wykres dla 1 pomiarow , czestosc

fid = file ('open','D:\Documents and Settings\ravano\Pulpit\scilabb\dane1.txt','unknown');
//dane = read (fid, -1, 2);
dane = read (fid, -1, 2);


//-----------------------------------------------------------------
//HISTOGRAM

B=[2250;2300;2350;2400;2450;2500;2550]
clf;
//A=[dane(:,2)]

A=0;
B=0;
C=0;
D=0;
E=0;
F=0;


i=1;
for i=1:10
if dane(:,2)>2250 & dane(:,2)>=2300 then
A=A+1;
elseif dane(:,2)>2300 & dane(:,2)<=2350 then
B=B+1;
elseif dane(:,2)>2350 & dane(:,2)<2400 then
C=C+1;
elseif dane(:,2)>2400 & dane(:,2)<=2450 then
D=D+1;
elseif dane(:,2)>2450 & dane(:,2)<=2500 then
E=E+1;
elseif dane(:,2)>2500 & dane(:,2)<=2550 then
E=E+1;


end,
end
//histplot(B, dane(:,2),style=1)
plot(B, dane(:,2),style=1)
title(' Histogramm dla 10 pomiarow ');
xlabel(' Klasy ');
ylabel(' Liczebnosc ');
Wyszukiwarka