Plotting the branches of a complex function
问题 I'm trying to plot a kind of Riemann's surface of a function (I'm not sure if it's the right name for the thing), as shown below: Here's what I tried: r = (0:1:15)'; % create a matrix of complex inputs theta = pi*(-1:0.05:1); z = r*exp(1i*theta); w = z.^(1/2) ; % calculate the complex outputs figure('Name','Graphique complexe','units','normalized','outerposition',[ 0.08 0.1 0.8 0.55]); subplot(121) surf(real(z),imag(z),real(w),imag(w)) % visualize the complex function using surf xlabel('Real