GPT-4.1
genrosen.m:clear
% set resolution of sampling
nx =...
genrosen.m:clear
% set resolution of sampling
nx = 100;
ny = 100;
% set bounds of space
x1 = -1.5;
x2 = 1.5;
y1 = -.5;
y2 = 2.1;
% create 1-d parameters
X = linspace(x1, x2, nx);
Y = linspace(y1, y2, ...