So, I decide to do a project in Excel instead of Matlab.
It was implied that Matlab would be the program of choice for this project but it was not required (in my defense).
Anyways, now I have three sets of working Matlab code for this project that I could use. But it's become personal.
Here's the math (this is for a method of tracking typical oceanic wave heights for a given frequency or time, FYI. Google JONSWAP if you want to learn the specifics):
eta(t=0) = (A0*cos(w0*t0+e0)) + (A1*cos(w1*t0+e1))+.....(An*cos(wn*t0+en)
aka:
This repeats for eta (t = 1-1000)
I tried this : =sum($H$8:$H$1032*cos($D$8:$D$1032*$I8+$B$8:$B$1032)), where the I column is all my times, 1-1000, and it doesn't work... unless there's a bunch of half-meter tall waves in an ocean where the significant wave height is 16 meters (there aren't).
Is there a way to express this in Excel such that I don't have a bunch of (literally about a thousand) different columns for each time dependent summation? Ideally, I'd like one column, 1-1000, that covers all summations for all times.