Friend Function And Inline Function Matlab