I have successfuly ran this code in the past:
a=2.42;
v1= [-a/2; -sqrt(3)*a/2];
v2= [a; 0];
[x,y] = meshgrid(-15:15,-15:15);
lattice=[v1,v2]*[x(:)';y(:)'];
Now that I want to reuse this file, matlab gives a BLAS laoding error about line 6.
Error using *
BLAS loading error:
mkl.dll: The specified module could not be found
Error in latticecodehw3p3 (line 6)
lattice=[v1,v2]*[x(:)';y(:)'];
This is the second time that this has happened to me with matlab (first time was a different file) and last time I had to reinstall matlab to fix it. Obviously I do not want to keep reinstalling matlab everytime I want to run an old code. Also, the code runs perfectly fine in matlab online.
>>