Thread Subject: if-else statements

Subject: if-else statements

From: Jasper Adamek

Date: 7 Feb, 2012 05:54:10

Message: 1 of 4

Write an if-else statement that checks whether the size of two arrays is equal or not. If the arrays are of different sizes, make their sizes equal by appending zeroes at the end of the smaller array.

HOW DO I DO THIS????

Subject: if-else statements

From: Loren Shure

Date: 7 Feb, 2012 14:15:08

Message: 2 of 4

"Jasper Adamek" <jadamekbowers@gmail.com> wrote in message
news:jgqea2$mqe$1@newscl01ah.mathworks.com...
> Write an if-else statement that checks whether the size of two arrays is
> equal or not. If the arrays are of different sizes, make their sizes equal
> by appending zeroes at the end of the smaller array.
>
> HOW DO I DO THIS????

Sounds like homework. Show what you've tried and where you are getting
tripped up. Then someone might help here.

--
Loren
http://blogs.mathworks.com/loren/
http://www.mathworks.com/matlabcentral/

Subject: if-else statements

From: Steven_Lord

Date: 7 Feb, 2012 14:16:05

Message: 3 of 4



"Jasper Adamek" <jadamekbowers@gmail.com> wrote in message
news:jgqea2$mqe$1@newscl01ah.mathworks.com...
> Write an if-else statement that checks whether the size of two arrays is
> equal or not. If the arrays are of different sizes, make their sizes equal
> by appending zeroes at the end of the smaller array.
>
> HOW DO I DO THIS????

This sounds like a homework question and in general this newsgroup requires
people posting homework questions (or questions that sound like they're
homework, even if they're not) to show what they've done to try to solve the
problem and to ask a SPECIFIC question before the readers will offer any
suggestions. Post the code you've written to try to solve that question and
indicate where EXACTLY you're stuck and someone may offer some assistance.

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

Subject: if-else statements

From: dpb

Date: 7 Feb, 2012 14:27:52

Message: 4 of 4

On 2/6/2012 11:54 PM, Jasper Adamek wrote:
> Write an if-else statement that checks whether the size of two arrays is
> equal or not. If the arrays are of different sizes, make their sizes
> equal by appending zeroes at the end of the smaller array.
>
> HOW DO I DO THIS????

In agreement w/ the other posters, I'll add a hint...

doc size

might be useful...

Also read the "Getting Started" section in the documentation and work
through the examples to get the feeling for how Matlab works...there are
examples of the kinds of operations you'll need that should begin to
give you ideas of how to tackle the problem.

--

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us at files@mathworks.com