I want two figures to appear side by side in a beamer block. Can it be done? I have tried minipage and subfigure, but it all appears vertically. Here is a sample of what I have done (the scale was put randomly to try things out.)
\documentclass{beamer}
\usetheme{Boadilla}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\begin{frame}{1}
\begin{block}
1
\begin{figure}
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[width=0.3\linewidth]{ej3.png}
\caption{1}
\end{minipage}
\begin{minipage}{.5\textwidth}
\centering
\includegraphics[width=0.3\linewidth]{ej3.png}
\caption{1}
\end{minipage}
\end{figure}
\end{block}
\end{frame}
\end{document}
\end{minipage}%
or\end{minipage}\hfill
.