Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
element array

Subject: element array

From: Tava Eurdanceza

Date: 8 Aug, 2010 04:02:06

Message: 1 of 2

Hello guys. I have a big problem about goodness of fit with chi-square method.
I want to create program goodness of fit with chi-square method use Matlab.
1.There may of you that know how to create program goodness of fit with chi-square method use Matlab
2. If i have
A = 3 6 8 11 9 8 6 3 1
if the elements of A less than five then the element is combined with other elements so that every element of A no less than five.
A to become
A = 9 8 11 9 8 10
I don't know how to create it.
So help me please.
Thanks before

Subject: element array

From: us

Date: 8 Aug, 2010 15:11:05

Message: 2 of 2

"Tava Eurdanceza" <tava_cute@yahoo.com> wrote in message <i3la7u$sni$1@fred.mathworks.com>...
> Hello guys. I have a big problem about goodness of fit with chi-square method.
> I want to create program goodness of fit with chi-square method use Matlab.
> 1.There may of you that know how to create program goodness of fit with chi-square method use Matlab
> 2. If i have
> A = 3 6 8 11 9 8 6 3 1
> if the elements of A less than five then the element is combined with other elements so that every element of A no less than five.
> A to become
> A = 9 8 11 9 8 10
> I don't know how to create it.
> So help me please.
> Thanks before

???
your description differs from your example...
- do you mean less than seven(?)...
  3+6 => 9
  6+3+1 => 10
- what do you mean by ...combined with other(?) elements...

for the first part:
- if you own the stats tbx, look at

     help chi2gof;

us

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us