xm = 0:0.1:6; ym =3:0.1:9;[x, y] = meshgrid(xm,ym);angle = asind((-x.^2.*y.^2-y.^4+1296)./(2.*x.*y.^3));angle = real(angle);z2 = 6./(x.*sind(angle)+y);figurecontourf(x,angle,z2,0.82:0.03:2.2,'ShowText','on');
For the above code, I want to calculate z2 for the matrix elements of angles having the values between (-40) to 20 degrees, other values must vanish from the matrix. I know for these purpose x and y matrices should match with the angle matrix and they also need to be arranged, but ı couldn't manage the issue.
As a note, limiting the plotting axis is not the point because I will use the data for another calculation, I want to clear out unwanted parts of the data.
Best Answer