Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: initializing complex matrix dynamically
Date: Mon, 22 Mar 2010 16:00:21 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <ho846l$eo7$1@fred.mathworks.com>
References: <ho83hg$3nt$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1269273621 15111 172.30.248.35 (22 Mar 2010 16:00:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 22 Mar 2010 16:00:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:619027

Hi Gaurav,

Would this work?

N = 256; % just made it up
complexMatrix = rand(N)+i*rand(N); 

so that you have an NxN complex matrix with elements real and imag parts ranging from 0 to 1

Best.