From: rounak dubey on
Hii all,

I need help to get through MATLAB.
I am new to Matlab and I have a dataset of 200 molecules with its biological activity value in numers. I have to divide my data in training set and test set in 70%-30% ratio using MATLAB.

Could any one please tell me how to do this.
Give a quick reply at rounakdubey03(a)gmail.com
Thanks in advance.

rounak
From: Roger Stafford on
"rounak dubey" <aspiration303(a)yahoo.com> wrote in message <hpke8t$16b$1(a)fred.mathworks.com>...
> Hii all,
>
> I need help to get through MATLAB.
> I am new to Matlab and I have a dataset of 200 molecules with its biological activity value in numers. I have to divide my data in training set and test set in 70%-30% ratio using MATLAB.
>
> Could any one please tell me how to do this.
> Give a quick reply at rounakdubey03(a)gmail.com
> Thanks in advance.
>
> rounak

You don't state what you consider an acceptable method of division. The easy way is of course to put the first 140 elements in one set and the remaining 60 in the other. However I get the impression you would prefer it to be done randomly. If so, use 'randperm':

p = randperm(200);
s1 = data(p(1:140));
s2 = data(p(141:200));

Roger Stafford
From: uzair on
im making a game in matlab i.e the bowman.Im having trouble with the movement of the arrow,how move the arrow in a parabolic path by changing its direction.Please help me in doing so.
regards
Uzair
From: the cyclist on
uzair <uzair190(a)yahoo.com> wrote in message <556724908.25849.1272311680390.JavaMail.root(a)gallium.mathforum.org>...
> im making a game in matlab i.e the bowman.Im having trouble with the movement of the arrow,how move the arrow in a parabolic path by changing its direction.Please help me in doing so.
> regards
> Uzair

I have two suggestions for getting a better response to you queries. First, make the subject line something more specific and meaningful than "MATLAB". Every post here is (or should be) about MATLAB. Second, show the code that you have already written in trying to solve your problem. People here are much more responsive when they see that you have made a real effort on your own.

the cyclist
From: ImageAnalyst on
Not to mention START YOUR OWN THREAD, rather than piggyback onto
someone else's totally unrelated thread.