Matlab has all time problems.

75 visualizzazioni (ultimi 30 giorni)
Bahadir
Bahadir il 1 Ott 2025 alle 8:27
Commentato: Bahadir il 8 Ott 2025 alle 18:52
Why does not matlab work properly?
All time, I meet some problems with matlab.
For example
  1. I have the latest version Microsoft Visual C++ 2015-2022 Redistributable (x64) -14.42.34438.
But matlab is not work.
Error:Deep learning code generation using MinGW64 Compiler (C++) toolchain is not supported for mkldnn target.
Function 'MATLAB Function' (#426.60.106), line 4, column 11:
"coder.loadDeepLearningNetwork('32.mat')"
Launch diagnostic report.
2. I trained LSTM for fault detecting.
when I use "minibatchpredict" or "predict" command at matlab command window, it is work very well.
scores = minibatchpredict(net,XTest);
or
YPred = predict(net, XTest);
But when I use Stateful Classify at simulink, it is very bad.
I use all time same data and net.
Matlab command window work very well with minibatchpredict and predict command but simulink is not good Stateful Classify.
Why?
3. Error:Simulink cannot determine sizes and/or types of the outputs for block 'Simulink_Doktorailkdosya/MATLAB Function' due to
errors in the block body, or limitations of the underlying analysis. The errors might be inaccurate. Fix the indicated errors, or explicitly
specify sizes and/or types for all block outputs.
4. Error:Error in port widths or dimensions. 'Output Port 1' of 'Simulink_Doktorailkdosya/MATLAB Function/u' is a [20x6] matrix.
.
.
.
.
  2 Commenti
Torsten
Torsten il 1 Ott 2025 alle 9:23
Modificato: Torsten il 1 Ott 2025 alle 9:26
Contact MATLAB Product Support:
We are just a group of MATLAB users sharing our knowledge about the software, not MATLAB employees. I think in your case, it's more efficient to contact the software developers directly.
Bahadir
Bahadir il 1 Ott 2025 alle 20:35
I contact matlab software developers directly.
I didnot get any answer :(
What is the your opinion about problem 1 and 2 ?

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 1 Ott 2025 alle 20:43
Run-time redistributables provide run-time support for executables that have already been compiled. Run-time redistributables do not provide the tools for the compilation process. For whatever reason, what you are trying to do requires that you install the compiler (not just the run-time redistributable.)
You have already asked about #2 multiple times. You should assume by now that none of the volunteers likely to visit this month know the answer.
  3 Commenti
Walter Roberson
Walter Roberson il 7 Ott 2025 alle 14:39
Using a different version of the Run-time redistributable will not help: you need to use the actual Visual Studios compiler.
Bahadir
Bahadir il 8 Ott 2025 alle 18:52
Thanks, it is OK.
I install Visual Studio compiler tools 2022 and Visual Studio community 2022.
Desktop development with C++
After install them, I need to use mex -setup cpp and select Visual C++

Accedi per commentare.

Più risposte (1)

Image Analyst
Image Analyst il 2 Ott 2025 alle 2:54
Most people don't have the compiler, though I (and you) do. I compile stuff all the time without errors. Since you're having errors, it must be specific to your particular installation. I'm assuming your software maintenance agreement is still in force so you should call them. The causes for crashes or errors are many and complex, and complicated to figure out, especially if you don't have access to the source code. This is why it's best for The Mathworks to work on your error/crash issue. Asking other users in the Answers forum may provide an answer but the chances are slim. Your best bet is to call The Mathworks at (508)647-7000 and explain to them the circumstances for your crash. I don't understand why you didn't get any answer when you called them. Did they at least pick up the phone? I've never had them not pick up the phone. When you're on the phone with them they can arrange a screen sharing session to drive your computer. And if they can't figure it out while you're on the phone with them, they'll research it offline and get back to you.
I'm not sure how far along that process you got. Sounds like you talked to them directly and they just said "Who knows? Sorry, but we can't help you. You're on your own.",
but I kind of doubt that. I'd call them again and perhaps get a different support agent.
  2 Commenti
Bahadir
Bahadir il 6 Ott 2025 alle 18:19
they send my question to local advisor.
Image Analyst
Image Analyst il 7 Ott 2025 alle 13:19
So what what the result? (They should have gotten back to you by now.)

Accedi per commentare.

Categorie

Scopri di più su Block Libraries in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by