Hi Everyone
I have a matrix Z(i,j) that is a function of X and Y. Surface and contour plot look fine, but are difficult to interpret.
Is there a way to plot a function of X and Y , such that Z is equal to zero (or as close to zero as possible, since non of the elements in the Z matrix is actually zero)? What I'd like to find out is for which combinations of X and Y the Z-value is above and below zero.
My code is very long, but I did something like this to get matrix Z:
X=linspace(a,b)Y=linspace(c,d)for i = 1:numel(X) Z(:,i) = functionZ(X(i)) %Functionhandle functionZ:
Z(j) = %functionZ(X)
Y=linspace(c,d) for j = 1:numel(Y) Z(j)= %function with parameter X
endend
thanks in advance for any tips!
Best Answer