add matlab calculate