Showing posts with label MATLAB. Show all posts
Showing posts with label MATLAB. Show all posts

Monday, October 18, 2010

MATLAB

MATLAB, short for the MATrix LABoratory, is a strange program. Throughout my bachelor's and a bit during my master's I would hear people complaining about the program but I never had the opportunity to use it. Looking back on it now I wish I had!

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:

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.
Related Posts Plugin for WordPress, Blogger...