Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
initializing complex matrix dynamically

Subject: initializing complex matrix dynamically

From: Gaurav Raghubanshi

Date: 22 Mar, 2010 15:49:04

Message: 1 of 2

i m a beginner in case of matlab, im having problem initializing a complex array dynamically, im using it for finding out the fourier descriptors for a application in signature recognition,
please help...

Subject: initializing complex matrix dynamically

From: Sadik

Date: 22 Mar, 2010 16:00:21

Message: 2 of 2

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.

Tags for this Thread

No tags are associated with this thread.

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.

Contact us