Matlab has all time problems.

50 views (last 30 days)
Bahadir
Bahadir on 1 Oct 2025 at 8:27
Commented: Walter Roberson ongeveer 9 uur ago
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 Comments
Torsten
Torsten on 1 Oct 2025 at 9:23
Edited: Torsten on 1 Oct 2025 at 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 on 1 Oct 2025 at 20:35
I contact matlab software developers directly.
I didnot get any answer :(
What is the your opinion about problem 1 and 2 ?

Sign in to comment.

Answers (2)

Walter Roberson
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
Bahadir
Bahadir 1 dag ago
ı will check for different versions.
Walter Roberson
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.

Sign in to comment.


Image Analyst
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
Bahadir
Bahadir ongeveer 24 uur ago
they send my question to local advisor.
Image Analyst
Image Analyst ongeveer 5 uur ago
So what what the result? (They should have gotten back to you by now.)

Sign in to comment.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!