Marvell Technology Interview Question

1. what's the difference between matlab function and matlab script? 2. how does a system know when there is an error in the codeword?