- #1
member 428835
Hi PF!
Each element of an ##n\times m## matrix is complex valued. In the following code, I call this "domain". There is also an ##n\times m## matrix that is real valued, below I call this "f". I'd like to plot a 3D image where the ##x-y## plane is the complex plain given by the coordinates "domain" who take a height f. Do you know how to do this?
I appreciate your time!
Each element of an ##n\times m## matrix is complex valued. In the following code, I call this "domain". There is also an ##n\times m## matrix that is real valued, below I call this "f". I'd like to plot a 3D image where the ##x-y## plane is the complex plain given by the coordinates "domain" who take a height f. Do you know how to do this?
Matlab:
RE_lam_end = 30;
IM_lam_end = 10;
RE_lam_start = 0;
IM_lam_start = 0;
RE_dlam = 1;
IM_dlam = 1;
RE_lam = RE_lam_start:IM_dlam:RE_lam_end;
IM_lam = IM_lam_start:RE_dlam:IM_lam_end;
domain = RE_lam+1i*IM_lam';
f = rand(size(domain,1),size(domain,2))
I appreciate your time!