Matlab has all time problems.
50 views (last 30 days)
Show older comments
Why does not matlab work properly?
All time, I meet some problems with matlab.
For example
- 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 Comments
Answers (2)
Walter Roberson
on 1 Oct 2025 at 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.
2 Comments
Walter Roberson
ongeveer 3 uur ago
Using a different version of the Run-time redistributable will not help: you need to use the actual Visual Studios compiler.
Image Analyst
on 2 Oct 2025 at 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 Comments
Image Analyst
ongeveer 5 uur ago
So what what the result? (They should have gotten back to you by now.)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!