% GENERATE CODE FOR GENERATING GRID
code_generate_grid = '[';for i=1:length(grd.Nx) code_generate_grid = [code_generate_grid 'inp.X{' num2str(i) '} '];endfor i=1:length(grd.Nu) code_generate_grid = [code_generate_grid 'inp.U{' num2str(i) '} '];endcode_generate_grid = [code_generate_grid '] = ndgrid('];for i=1:length(grd.Nx) code_generate_grid = [code_generate_grid 'current_grd.X{' num2str(i) '},'];endfor i=1:length(grd.Nu) code_generate_grid = [code_generate_grid 'current_grd.U{' num2str(i) '},'];endcode_generate_grid = code_generate_grid(1:end-1);code_generate_grid = [code_generate_grid ');'];
can someone explain the meaning from the code with bold text
Any help would be appreciate thank you…..
Best Answer