I'm trying to include an Matlab-auto-generated figure-caption tex-file using
\caption{\input{Spectrogram-2011-09-28-S003.title.tex}}
but if fails with error
ERROR: Argument of \@caption has an extra }.
I've tried all kinds of syntactic variants. How to solve this?

try \caption{\protect\input ....– Yiannis Lazarides Dec 20 '11 at 10:44