Feeds:
Posts
Comments

Posts Tagged ‘matlab’

Hanging About

It is starting to get cold.

After trying to program an almost intractable problem it is fun to help my roommates with their Matlab homework. Especially since I have never had a dedicated programming course before. And because their homework problem is very reasonable in what it asks and what it needs.

VLF attenuation in the earth-ionospehre waveguide is not as easy.

Read Full Post »

Matlab Magic

Images are sometimes too easy to make.

Images are sometimes too easy to make.

I occasionally stumble across some interested images in Matlab while testing things out. Particular when trying to run random data through my programs to see if the results are from the data instead of the program itself. In this case I cross-correlation a normalized magic square to get the above surface plot. It looked neat so I kept the code:

mg=magic(40);

 

points=size(mg,1);

mg_norm=zeros(size(mg));

 

for i=1:points

norm=mg(i,:)./max(mg(i,:));

norm=norm-mean(norm);

mg_norm(i,:)=norm;

end

 

a=xcorr2(mg_norm);

a=a.*(1/max(max(a)));

 

figure;

surf(a);

clear a i mg mg_norm norm points

Read Full Post »

Learning Matlab

These grad students are not currently using Matlab.

These grad students are not currently using Matlab.

For my future lab work I need to learn Matlab. I am slowly working my way through the demo videos to get a basic familiarity with the software. While I am learning what can be done I probably won’t really learn the software until I need to do something with it.

I always thought that Matlab was an alternative to Mathematica or at least fulfilled a lot of what it does. After using Mathematica for some data analysis I can see how Matlab could replace Mathematica in a work flow, but Mathematica still wins for algebraic calculations and calculus. Though I suppose that I will slowly be shying away from solving hard integrals and moving more towards working with real numbers.

While I appreciate that Matlab is offered for 64-bit Intel OS X I am not a fan of the yearly license renewals. I am using my labs license so I don’t have to pay but it is just an inconvenience to know that your software could stop working. For this reason my professor also gave me an older copy of Matlab to install on my Windows partition that has a perpetual license and won’t expire. The only upside I see to the annual license is if it includes all updates and upgrades to new versions of Matlab.

Read Full Post »