[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help me up with MATLAB, please!



> >Could someone give me the answer of the following MATLAB code
> >
> >z = [
> >	1	0	0
> >	1	0	0
> >	0	1	0
> >	0	1	0
> >	0	0	1
> >	0	0	1
> >];
> >
> >z(:, any(z)) = ???
> >
> >The output of OCTAVE is
> >
> >  1  1  1
> >  1  1  1
> >  0  0  0
> >  0  0  0
> >  0  0  0
> >  0  0  0
> >
> >I don't know if it's correct because I do not have MATLAB here.
> >
> >Thanks in advance,
> >Vu Nguyen-Cong
> >ncv@ap.cc.affrc.go.jp
> 
> 
> 
>         z(:, any(z)) = ???
> 
>         What are you trying to do, Cong? matrix calculation or what?
> 
>         Tuan

Hello anh Tuan,

I'm trying to understand a MATLAB program for proportional odds model
in statistics and port it to another language. My question is concerned
with the data preprocessing step that I have not understood well. Therefore,
I must track it. I believe that the answer should be z itself but I do
not have MATLAB to test it.

Vu Nguyen-Cong

PS. Do you still want me to work with you on some projects?