now it works on matlab and even draws beautiful graphs. Oh, how I have matlab....