This is simple, but for some reason I can't find the solution anywhere on the internet. I have a vector function in MATLAB $$E(s)=(E_1(s),E_2(s),E_3(s))$$ I want to be able to index it, so normally in MATLAB you would use 'E(1)', for element one. However this just evaluates the vector at $s=2$. 'E(s)(1)' gives an error, this must be simple, it's ridiculous this is causing a problem.
Any help would be greatly appreciated, here's my code for reference