Try this with your matrix, m
m = 200 * ones(200); % First initialize to all 200 m(300, :) = 400; % Set row 300, all columns, to 400. m(3:9, 4:9) = 800; % Set this block to be all 800
Try this with your matrix, m
m = 200 * ones(200); % First initialize to all 200 m(300, :) = 400; % Set row 300, all columns, to 400. m(3:9, 4:9) = 800; % Set this block to be all 800
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!