I had a terrible dream last night and woke up in a cold sweat.


Is it identical to say "woke up with a cold sweat" instead? If not, then what does "in" signify in the above? Thanks.