Let $T$ be a scheme (probably integral noetherian) and $X$ a smooth projective variety. Let $K,K',A,A'$ be locally free coherent sheaves on $X\times T$. There are exact sequences:


$0\rightarrow K\rightarrow A\rightarrow E\rightarrow 0$


and


$0\rightarrow K'\rightarrow A'\rightarrow E'\rightarrow 0$


which are exact when restricted to any fiber $X\times t$. In particular, $E$ and $E'$ are flat over $T$ by a result in Chapter 8 of Matsumura textbook.



> 
> Is $\mathcal{H}om(E,E')$ flat over $T$?
> 
> 
> 



Sheaf Hom is flat
No. For example, let $X = T = C$ be a smooth projective curve (but we keep the notation $X \times T$ to indicate the separate functions of the two). Let $E = \mathcal O\_{\Delta\_C}$, and let $E' = \mathcal O\_{x \times T}$ for a point $x \in X$.


Since both the maps $\Delta\_C \to X \times T \to T$ and $x \times T \to X \times T \to T$ are isomorphisms, we see that $E$ and $E'$ are flat over $T$. They also admit a presentation of the form you describe: we can take $A = A' = \mathcal O\_{X \times T}$, with $K = \mathcal O\_{X \times T}(-\Delta\_C)$ and $K' = \mathcal O\_{X \times T}(-x \times T)$. The sequences
$$\begin{array}{ccccccccc}0 & \to & \mathcal O\_{X \times T}(-\Delta\_C) & \to & \mathcal O\_{X \times T} & \to & \mathcal O\_{\Delta\_C} & \to & 0\\0 & \to & \mathcal O\_{X \times T}(-x\times T) & \to & \mathcal O\_{X \times T} & \to & \mathcal O\_{x \times T} & \to & 0\\\end{array}$$
are both exact, hence remain so in each fibre $X \times t$ (e.g. use right exactness of $-\otimes \mathcal O\_{X \times t}$ plus the fact that the left hand side is locally free of rank $1$, so that the first map is injective by a rank count).


But $E|\_{X \times t} = \mathcal O\_t$ and $E'|\_{X \times t} = \mathcal O\_x$ (with the identification $X \times t \cong X$). Hence, $\mathcal Hom(E,E')$ jumps at $x = t$: there are no homomorphisms when $t \neq x$, but there is one when $t = x$.


