I want to plot this function in matlab : sin(4*x)*cos(4*y) on a disk
This is how i proceeded : syms x y; f=@(x,y) sin(4*x)*cos(4*y); ezmesh(f,'circ')
This method works with f=@(x,y) sin(2*x)*cos(2*y);

but with a more quickly varying function like f=@(x,y) sin(4*x)*cos(4*y); ezmesh mistakes these variations for discontinuities. the problem is i can't use the 'circ' parameter and increase the number of points that ezmesh uses at the same time (ezmesh didn't accept it)
Is there any other way ? Help please !
Suppose that you want to display the function $f(x,y)$ over the region $r<R,0\leq\theta\leq2\pi$.
Given a scalar
Rand a function handle taking $x$ and $y$ variablesfun.If
funcan take vector arguments, then lines $12-18$ can be rewritten asZ=fun(X,Y);. In your case, this would mean rewriting the function to beAn alternate method to generate
XandYmatrices for the coordinates is to generate the entire square around the circle and disregard those outside of the circle. This would replace lines $1-10$ above. The downside to this approach is that the boundary will be a series of jagged edges and not a smooth circle.