
Mike Croucher
I write The MATLAB Blog at MathWorks and specialize in High Performance Computing, Research Software Engineering and Machine Learning. You can also follow me at BlueSky https://bsky.app/profile/walkingrandomly.bsky.social
Statistics
0 Problems
17 Solutions
73 Posts
HighlightsRANK
273
of 298,247
REPUTATION
325
CONTRIBUTIONS
1 Question
92 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
85
RANK
of 20,553
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
73 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
1 Highlight
AVERAGE NO. OF LIKES
23
Feeds
Is it possible to use keyHash without the random seed per MATLAB session?
I'm afraid not, can you tell us more about your workflow? When you look across various other languages, no one seems to guarant...
5 days ago | 0
unable to import EfficientNet from onnx
While researching EfficientNet I discovered this old answer so thought I'd update with the current situation as of R2024b. Loo...
7 days ago | 0
EfficientNet model support in MATLAB's Deep Learning Toolbox
Looking at the documentation for imagePretrainedNetwork I can see that EfficientNet B0 is directly supported which you can choos...
7 days ago | 0
How to make str2double recognize comma delimited numbers?
Try using str2num instead str2num('2,3',Evaluation = "restricted") or possibly this s = '2,3'; str2double(split(s, ','))
1 month ago | 0
Antenna Toolbox simulations come out wrong
Hi @Joshua. I've reported this to development who think this may be a bug and are currently investigating. Thank you for the re...
1 month ago | 0
Plots saved as JPEG look awful. How to improve?
JPEG is a lossy file format which means that it can have a degradation in quality from the original. If Powerpoint is to be the...
1 month ago | 0
Intel vs AMD for a new build in 2025
I am in the market for a new personal machine myself. I don't have any answers as to what is best but I can tell you that MATLAB...
2 months ago | 0
| accepted
Optimizing number of threads and workers in virtual machines.
In general, this depends hugely on exactly what your code is doing. If there was one perfect setting that always worked, it woul...
2 months ago | 0
| accepted
Looking for linear system Ax=0 precision improvements
I'm not an expert in this type of thing so take the following with caution but perhaps try vpa to give more precision? Somethin...
2 months ago | 0
How to run a MATLAB file without opening the MATLAB GUI?
You need to wrap your script in a run command. I also suggest using the newer, -batch switch "C:\Program Files\MATLAB\R2024b\bi...
2 months ago | 1
| accepted
Code generation between r2024a and r2024b
Sorry to hear that you are having problems. It is highly unlikely that anyone in this forum is going to be able to help you with...
2 months ago | 0
| accepted
How to make ode45 store/return only results of every n-th time step to reduce memory use?
I would suggest trying the new ode interface The new solution framework for Ordinary Differential Equations (ODEs) in MATLAB R20...
2 months ago | 0
TODO/FIXME Report in R2024b
This function was removed in R2024b. It has been unsupported for a long time. If you open R2024a, for example, and do help dof...
2 months ago | 0
I am looking the instructions page for Online installation.
This forum is largely run by volunteers who are not equipped to resolve installation issues. Since you have paid for the produc...
2 months ago | 1
| accepted
Method to speed up simulation on working station.
In times gone by it was possible to speed up your simulation simply by running on a bigger or newer machine but those days have ...
2 months ago | 0
Blade.stl missing from PDE toolbox
If you run the following command in MATLAB openExample('pde/ThermalStressAnalysisOfJetEngineTurbineBladeExample') you'll get B...
2 months ago | 0
| accepted
Algorithm used to implement the function qtdecomp?
There is a description of the algorithm on the documentation page qtdecomp. It says "The qtdecomp function divides a square ima...
2 months ago | 0
| accepted
Faster Empirical Cumulative Distribution Function (ECDF)
In your original code you didn't define n so I might have got the definition wrong here but since its just a scalar it won't aff...
2 months ago | 0
| accepted
Inquiry Regarding Minor Variations in MATLAB GPU Computation
It is difficult to comment without seeing the code but the most general thing I can think of saying goes as follows: A calculat...
3 months ago | 0
Difference between RMSE of Curve fitter and calculated RMSE in MS Excel
First, I wanted to confirm your manual calculation of RMSE using the formula you gave but using MATLAB instead of Excel. Here's ...
3 months ago | 2
| accepted
How do I programmatically switch to Dark Mode (Dark Theme) in R2025a?
This is supported from R2025a onwards. This is what you need to do >> s = settings; >> s.matlab.appearance.MATLABTheme.Persona...
3 months ago | 2
| accepted
Question
How do I programmatically switch to Dark Mode (Dark Theme) in R2025a?
I am running R2025a pre-release. What are the commands to switch to dark mode?
3 months ago | 2 answers | 3
2
answersHow do get all of my python libraries in matlab?
Your python environment looks strange to me. I've never seen pythonw.exe used in MATLAB Python environment. It's usually python...
4 months ago | 0
| accepted
Is there a student version of the Aerospace Toolbox?
There is no free student version of MATLAB but there is a version that is heavily discounted. Go to MATLAB for Students - MATLAB...
4 months ago | 1
| accepted
I'm trying to make a simple calculator for circuits. And I can not figure out how to take the answer and limit to only like two numbers after the decimal place.
This page on the documentation will help explain the details: Formatting Text TotalResistance = 186.66; fprintf("The total res...
4 months ago | 0
| accepted
GPU programming for Mac M1
I have an M2 Mac and I have just bought an M4 Mac for my wife. I love the hardware on these machines, its superb! I wrote the bl...
4 months ago | 3
| accepted
Adding Statistics and Machine Learning Toolbox to existing MATLAB
In 2024, the way I'd do this is with the mpm download command on a machine with an internet connection and then transfer the res...
4 months ago | 0
Working with big tall arrays in an HPC environment
Hi Sebastian I can't comment on the Tall Array situation right now but I'm zooming in on this comment: I am assigning 37 cores...
4 months ago | 0
Why does the validation loss first decrease and then increase after about 7 epochs while the training loss keeps decreasing?
I think you are right, this is an example of overfitting. There is no guarenteed way to fix it but there are several things you ...
4 months ago | 0
Vectorized code slower than loops
Another option, if you have the hardware, is to use a GPU. Here, you want to do as much vectorisation as you can. Using my des...
5 months ago | 1