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:
MATLAB

Subject: MATLAB

From: rounak dubey

Date: 8 Apr, 2010 11:22:06

Message: 1 of 5

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@gmail.com
Thanks in advance.

rounak

Subject: MATLAB

From: Roger Stafford

Date: 8 Apr, 2010 18:26:05

Message: 2 of 5

"rounak dubey" <aspiration303@yahoo.com> wrote in message <hpke8t$16b$1@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@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

Subject: MATLAB

From: uzair

Date: 26 Apr, 2010 19:54:10

Message: 3 of 5

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

Subject: MATLAB

From: the cyclist

Date: 26 Apr, 2010 21:13:04

Message: 4 of 5

uzair <uzair190@yahoo.com> wrote in message <556724908.25849.1272311680390.JavaMail.root@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

Subject: MATLAB

From: ImageAnalyst

Date: 26 Apr, 2010 22:49:08

Message: 5 of 5

Not to mention START YOUR OWN THREAD, rather than piggyback onto
someone else's totally unrelated thread.

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