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:
Mcodes for Inequalities(urgent)

Subject: Mcodes for Inequalities(urgent)

From: clement

Date: 5 Aug, 2012 22:08:13

Message: 1 of 2

Please am new here and also with matlab need urgent help on how to write this mcode for my thesis work will appreciate ur urgent help
 QUESTION

 if n1<n and n2 <=2n Satisfying the constraint n1 + n2 > n.

 ANSWER
 Lets assume that n=5 for this case
 Then n1 and n2 will have 30 pairs of results as follows that satisfies the inequalities above
 n1=[4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 4 3 4]
 n2=[10 10 10 10 9 9 9 9 8 8 8 8 7 7 7 7 6 6 6 6 5 5 5 5 4 4 4 3 3 2]

 note that the input n=5 can change to 6, 7 or an arbitrary number. please since am new hare dont kw how to get ma responds. pls send the code in ms-word to clementinomaximente@gmail.com. i appreciate ur contributions

(n2 <=2n is less than equal to)

Subject: Mcodes for Inequalities(urgent)

From: Steven_Lord

Date: 6 Aug, 2012 13:32:08

Message: 2 of 2



"clement " <klemzok@yahoo.com> wrote in message
news:jvmqsd$gpb$1@newscl01ah.mathworks.com...
> Please am new here and also with matlab need urgent help on how to write
> this mcode for my thesis work will appreciate ur urgent help
> QUESTION
>
> if n1<n and n2 <=2n Satisfying the constraint n1 + n2 > n.
>
> ANSWER
> Lets assume that n=5 for this case Then n1 and n2 will have 30 pairs of
> results as follows that satisfies the inequalities above
> n1=[4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 1 4 3 2 4 3 4]
> n2=[10 10 10 10 9 9 9 9 8 8 8 8 7 7 7 7 6 6 6 6 5 5 5 5 4 4 4 3 3 2]

HELP MESHGRID.

> note that the input n=5 can change to 6, 7 or an arbitrary number. please
> since am new hare dont kw how to get ma responds. pls send the code in
> ms-word to clementinomaximente@gmail.com. i appreciate ur contributions

If you ask the question on the newsgroup, you should check the newsgroup for
answers. Don't do "drive by" posts.

http://www.newsreaders.com/guide/netiquette.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

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