problem installing an older version of gcc

Hi,

I'm new to ubuntu:)

I'm trying to compile a program in Matlab using mex (Matlab), but I'm getting an error that I'm using gcc version 4.6.3 and the currently supported version with mex is 4.4.x.

So I downloaded gcc 4.4.3, but when I try to open it using Ubuntu software center, I'm getting an error: Dependency is not satisfiable: gcc-4.4-base (=4.4.3-4ubuntu5.1).

I don't know how to solve this problem. Can anyone please help? any help will be greatly appreciated as I'm quite stuck.

Thanks in advance,

Gil.