I need to write the matlab code for this equation:
I have tried two different ways of writing the code and my problem is that whether I should divide each component