function c = maxmin(b) % this function returns the max and min of matrix b max(b(:)) min(b(:)) b = b .* 2; c = b;