Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Use imagesc to plot data = magic(N); for N = 5:20. Arrange the 16 plots in a single figure window in a 4 by 4 grid, using handle graphs, not using subplot.

1 answer below »
Use imagesc to plot data = magic(N); for N = 5:20. Arrange the 16 plots in a single figure window in a 4 by 4 grid, using handle graphs, not using subplot.
Answered Same Day Dec 08, 2021

Solution

Kshitij answered on Dec 10 2021
128 Votes
mainfile/autoA
angeFigures.m
function autoA
angeFigures(NH, NW, monitor_id)
if nargin < 2
NH = 0;
NW = 0;
monitor_id = 1;
end
task_bar_offset = [30 50];
%%
N_FIG = NH * NW;
if N_FIG == 0
autoA
ange = 1;
else
autoA
ange = 0;
end
figHandle = sortFigureHandles(findobj('Type','figure'));
n_fig = size(figHandle,1);
if n_fig <= 0
warning('figures are not found');
return
end
screen_sz = get(0,'MonitorPositions');
screen_sz = screen_sz(monitor_id, :);
scn_w = screen_sz(3) - task_bar_offset(1);
scn_h = screen_sz(4) - task_bar_offset(2);
scn_w_begin = screen_sz(1) + task_bar_offset(1);
scn_h_begin = screen_sz(2) + task_bar_offset(2);
if autoA
ange==0
if n_fig > N_FIG
autoA
ange = 1;
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here