Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

What is my solution?

1 Ansicht (letzte 30 Tage)
eren eren
eren eren am 6 Dez. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
top2=0;top3=0;
mij=ones(5,5);
mi=ones(1,5);
X=[242 183 237 141 125;157 181 268 232 220;219 185 151 261 120;331 151 239 203 206;138 213 222 174 189];
Xort=mean(X); %mean for rows
for i=1:5
n(i)=length(X);
end
for i=1:5
for j=1:5
top2=top2+(mij(i,j)*(X(i,j)-Xort(i))^2) %top is in english sum. share % fraction for v
end
top3=top3+(n(i)-1); % denominator of v fraction
end
v=top2/top3;% v is the estimate which i want to calculate
v
İn this program, result is v =3.6694e+003 but it is wrong.in for loop only i=1 and j=1 works correctly. if i=1 j=2, results are bad. Can you help me?
  11 Kommentare
eren eren
eren eren am 8 Dez. 2012
Thanks Walter Roberson. This is working. do i use it every time or is it only one?
Walter Roberson
Walter Roberson am 8 Dez. 2012
Have it once in your program.

Antworten (0)

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by