MATLAB Answers

BLAS Loading Error?

8 views (last 30 days)
Jennifer Garrison
Jennifer Garrison on 2 Oct 2019
Answered: Pranjal Kaura on 28 Jul 2021
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.
>>

Answers (1)

Pranjal Kaura
Pranjal Kaura on 28 Jul 2021
Hi Jennifer,
If you're using MATLAB version 2014a or before, refer the following bug report for more information as well as a work around to solve the problem.
If you're using MATLAB version 2018b or newer, refer the following bug report for more information as well as a work around to solve the problem.
For more information, you can refer to this answer.

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by