I want to make a mesh plot from 1D equation. I have an one-dimensional equation. I want to make a mesh plot with such equation. I am expecting the diagonal of the matrix resulting solution of equation.
%% 1D line plot
x = linspace(0,1000,1000);
C = x.*(1-2/3*x);
%% create 2D mesh from x-cordinate;
[X,Y] = meshgrid(x,x);
%%% how to Convert C to 2D matrix