The specified module could not be found error when using the backslash operator!

Hello, I'm running MATLAB 2014a 64xbit and I get an error message pop up every time I try and use the backslash operator (\) in my funtions. this is the exact error
BLAS loading error:
mkl_custom.dll: The specified module could not be found.
and then it'll tell me where the error is for example
Error in PS6Q4 (line 9)
B=(A'*A)\(A'*y)
This error appears for all my functions which this operator is included, this is the m-file for that specific case above.
function PS6Q4
x=[1.14 5.62 0.31 2.21 3.54 2.87]';
y=[3.40 66.2 0.43 8.95 32.8 19.4]';
A=[x.^2 x]
B=(A'*A)\(A'*y)
end
If someone can please help me with a solution to this, that would be much appreciated!

2 件のコメント

Mostafa
Mostafa 2014 年 3 月 8 日
-------- | | | | | | | | | | UPDATE | | | | | | | | | | --------
I have found a very simple solution to this issue, I'll upload steps for anyone else who will ever encounter this issue.
Step 1 - Click the Start button, go to the Settings menu, and select Control Panel.
Step 2 - On the Control Panel menu, select System.
Step 3 - In the System Properties dialog box, click the Advanced tab.
Step 4 - On the Advanced panel, click the Environment Variables button.
Step 5 - In the Environment Variables dialog box, click the New button in the User variables section.
Step 6 - In the New User Variable dialog box, enter the name of the variable as BLAS_VERSION and set the value of the variable to the name of the MKL library: mkl.dll .
Here is a link to a pdf with instructions on how to do this as well (page 10-40) http://www.mn.uio.no/astro/english/services/it/help/mathematics/matlab/rn.pdf
Hirokazu Tanaka
Hirokazu Tanaka 2018 年 9 月 14 日
Deleting the Environment Variable "BLAS_VERSION" (if defined) could solve the issue? If not defined, MATLAB will just use the library that's included in the software package.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

質問済み:

2014 年 3 月 8 日

コメント済み:

2018 年 9 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by