MATLAB: How to write this equation

equation

Can someone help me write this equation. I am having problems with a bracket somewhere.Not getting the answer i needed.
Thanks

Best Answer

I used y and B to make it easier to read:
num = 2*y*(r^((y-1)/y)-1)
den = (y-1)*(B^4 - r^(-2/y))
out = sqrt(num/den)
Related Question