How to get a 2D data array of complex a+bi number from phase only 2D array.

I have a 2D array of phase values extracted from interferometric measurement. Now I need to get the same array but in complex a+bi form. I assume amplitude = 1. How to create little code for this purpose? Cheers!

Answers (1)

phase1 = 2*(rand(10)-.5)*pi; % your 2D array of phase values.
out = exp(1i*phase1);

Categories

Asked:

on 5 Dec 2015

Edited:

on 6 Dec 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!