Hi, I'm trying to plot a Biconic surface. Any idea what is going wrong? Thank you. cx=2/9; cy=2/7; Kx=-0.3; Ky=0.3; Z = (cx*x.^2+cy*y.^2)/(1+sqrt(1-(1+Kx)*cx^2*x.^2-(1+Ky)*cy^2*y.^2)); figure;imagesc(X,Y,Z);
Best Answer
You need to use element-wise division:
Z = (cx*x.^2+cy*y.^2)./(1+sqrt(1-(1+Kx)*cx^2*x.^2-(1+Ky)*cy^2*y.^2)); % biconic
Best Answer