Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Change row of matrix
Date: Mon, 6 Aug 2007 06:44:05 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 12
Message-ID: <f96fvl$q14$1@fred.mathworks.com>
References: <42b51$46b6c239$544841f0$22044@news.hispeed.ch>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186382645 26660 172.30.248.35 (6 Aug 2007 06:44:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Aug 2007 06:44:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:422540


roman.toengi:
<SNIP mat aerobatics...

one of the many solutions

     m=ones(5,4);
     nr=3;
     m(nr,:)=5;
     m(nr+1,:)=2*m(nr,:);
     m

us