added curl to matlab