From: ade77 on
"maryam " <maryam_tayefi(a)yahoo.com> wrote in message <ht0c6g$jqe$1(a)fred.mathworks.com>...
> Hi dears,
> I am new member of mathgroups,my outputs in matlab are as complex numbers,I want to know how can I write them into an excel file.
> Thanks
> Maryam

Simplest solution:

put the complex numbers into cell array, then use xlswrite.
From: tinne123 on
Hi maryam,

I have no idea on what your code is about, so maybe the following suggestion is not convenient to implement...

It's just an idea. How about creating for each of your complex numbers in Matlab separate matrices / arrays with its real and imaginary parts.

c = sqrt(-1)
c =

0 + 1.0000i

rpart = real(c)

rpart =

0
ipart = imag(c)

ipart =

1

You may then write rpart and ipart into Excel by xlswrite. In Excel 2003 e.g. there is function =complex(real_num,i_num,suffix) that converts the two supplements into a complex number. From a practical point of view, I think this is cumbersome and you may need control over eventual complex numbers in your output. I would love to help you, but I am not strong enough in programming for that...

Good luck!