floyd matlab