| MATLAB Central > MATLAB Newsreader > adding vectors of different length |
|
|
|
Hi all, |
|
Subject: adding vectors of different length From: Jan Simon Date: 22 Mar, 2010 09:50:04 Message: 2 of 16 |
|
Dear Sam! |
|
"Sam " <sam.watts60@ntlworld.com> wrote in message <ho7e37$mnn$1@fred.mathworks.com>... |
|
Subject: adding vectors of different length From: Walter Roberson Date: 22 Mar, 2010 09:58:39 Message: 4 of 16 |
|
Sam wrote: |
|
"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <ho7egc$sh0$1@fred.mathworks.com>... |
|
Subject: adding vectors of different length From: Husam Aldahiyat Date: 22 Mar, 2010 10:00:06 Message: 6 of 16 |
|
"Sam " <sam.watts60@ntlworld.com> wrote in message <ho7e37$mnn$1@fred.mathworks.com>... |
|
I have a first line for my function |
|
Subject: adding vectors of different length From: Husam Aldahiyat Date: 22 Mar, 2010 10:33:04 Message: 8 of 16 |
|
function res = MyAdd (x,y) |
|
"Sam " <sam.watts60@ntlworld.com> wrote in message <ho7gg3$5ht$1@fred.mathworks.com>... |
|
"us " <us@neurol.unizh.ch> wrote in message <ho7h4o$f52$1@fred.mathworks.com>... |
|
"Sam " <sam.watts60@ntlworld.com> wrote in message <ho7hlj$mq7$1@fred.mathworks.com>... |
|
Subject: adding vectors of different length From: Jan Sieber Date: 22 Mar, 2010 17:26:05 Message: 12 of 16 |
|
This was posed as a (very) basic programming exercise (NUM101) to let the students translate an algorithm they know without guidance into a program. MyAdd is supposed to treat the vectors full of single digits as arbitrary-length integers. |
|
Subject: adding vectors of different length From: Oleg Komarov Date: 22 Mar, 2010 18:11:06 Message: 13 of 16 |
|
"Jan Sieber" <jan.sieber@port.ac.uk> wrote in message <ho897d$6gc$1@fred.mathworks.com>... |
|
Subject: adding vectors of different length From: Oleg Komarov Date: 22 Mar, 2010 18:25:21 Message: 14 of 16 |
|
"Oleg Komarov" <oleg.komarovRemove.this@hotmail.it> wrote in message <ho8brq$nas$1@fred.mathworks.com>... |
|
Subject: adding vectors of different length From: Jan Sieber Date: 22 Mar, 2010 19:28:05 Message: 15 of 16 |
|
This defeats the purpose of being able to do arbitrarily large integers: what about |
|
Subject: adding vectors of different length From: Oleg Komarov Date: 22 Mar, 2010 20:30:40 Message: 16 of 16 |
|
"Jan Sieber" <jan.sieber@port.ac.uk> wrote in message <ho8gc5$bsd$1@fred.mathworks.com>... |
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.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| homework | Jan Sieber | 22 Mar, 2010 15:29:10 |
| programming basics | Jan Sieber | 22 Mar, 2010 13:29:07 |
Contact us at files@mathworks.com
