I'm trying to plot a 3-d graph of the Real part of symbolic function. I have written the code:
syms x realsyms y realangles = randi([0 360],2,8);angles = deg2rad(angles);a = normrnd(0,1,1,8);a = abs(a);E = a(1,:).*exp(-1i*K0*(cos(angles(1,:))*x+sin(angles(1,:))*y));end
And now i want to plot a 3d graph of the real part of the symbolic function E for a range of values of x and y. How can i do that?
Best Answer