One of the two courses I am taking this term is a modeling class; modeling how pollutants move/travel by dispersion/advection/diffusion/etc. I'm not sure how worthwhile the actual class will be because I don't forsee myself needing to model pollutants in the future but MATLAB has the opportunity to be a great tool.
The only problem is that I don't understand what I do wrong when it doesn't work! Take the following for example:
Do you understand what that is saying? Me either. That's what my professor gave me for the answer but it's not one that MATLAB is recognizing. I'm just trying to do an autocorrelation! And what I have above is not correct.
I'm sure MATLAB will be a very useful tool...once I figure it out. Until then it's a big pain.
r=zeros(1,5);
i=1:600;
ufs=uf(i:end);
ufs=[uf(i:(i-1))];
Ru(i)=mean(uf.*ufs)
Do you understand what that is saying? Me either. That's what my professor gave me for the answer but it's not one that MATLAB is recognizing. I'm just trying to do an autocorrelation! And what I have above is not correct.
I'm sure MATLAB will be a very useful tool...once I figure it out. Until then it's a big pain.