view +multiblock/setAllInterfaceOptions.m @ 924:93a5c59dd2fb feature/utux2D

Add helper function multiblock.SetAllInterfaceOptions.
author Martin Almquist <malmquist@stanford.edu>
date Sun, 02 Dec 2018 17:25:08 -0800
parents
children 60a3bc79835a
line wrap: on
line source

% g: multiblock grid
% opts: struct of options
% Returns g.nBlocks x g.nBlocks cell array with all elements set to opts.
function optsCell = setAllInterfaceOptions(g, opts)

	optsCell = cell(g.nBlocks(), g.nBlocks());
	for i = 1:g.nBlocks()^2
		optsCell{i} = opts;
	end

end