Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.
x = -50 + 100.*rand(50,2); function f = func(x) D = 2; [ps, D] = size(x); o=-50+100*rand(1,D); x=x-repmat(o,ps,1); f = max(abs(x), , 2); end This is how i tried doing it: cmin = -50; cmax = 50; steps = 20; c = linspace(cmin, cmax, steps); % Create the mesh [X1, X2] = meshgrid(c, c) contour(X1,X2,f);
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
11 Experts available now in Live!