Path: news.mathworks.com!not-for-mail
From: "Jos " <DELjos@jasenDEL.nl>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to interchange the locations of value in two strings
Date: Wed, 30 Apr 2008 11:16:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <fv9kdi$b0s$1@fred.mathworks.com>
References: <fv9ila$s2v$1@fred.mathworks.com>
Reply-To: "Jos " <DELjos@jasenDEL.nl>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1209554162 11292 172.30.248.37 (30 Apr 2008 11:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 30 Apr 2008 11:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 870065
Xref: news.mathworks.com comp.soft-sys.matlab:465905


"NohaiddaSariff aida" <nohaiddasariff@yahoo.com> wrote in 
message <fv9ila$s2v$1@fred.mathworks.com>...
> for example i have two strings of number
> 
> a=[1 2 3 4 5] and b=[6 7 8 9 10]
> 
> the problem is how could i change value 3 of a with value 
> 8 of b.its means i interchange the locations 3 and 8 
where 
> the result will become
> 
> a=[1 2 8 4 5]
> b=[6 7 3 9 10]
> 
> before that which column need to be interchange will be 
> chosen randomly..

This is too easy ... What have you tried so far yourself?
How would do it by hand?

Jos