![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/20789457_1614616188344.jpg)
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
68 Posts
HighlightsRANK
304
of 297,010
REPUTATION
281
CONTRIBUTIONS
1 Question
75 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
79
RANK
of 20,418
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
68 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
1 Highlight
AVERAGE NO. OF LIKES
23
Feeds
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 days ago | 0
| accepted
Published
On love and research software: Sharing code with your Valentine
I've been sharing mathematical equations with some sort of connection to Valentine's day for a long time now. Indeed, the...
3 days ago
![Thumbnail](http://blogs.mathworks.com/matlab/files/2025/02/rotatingHeart.gif)
Published
How to run local DeepSeek models and use them with MATLAB
Almost immediately after the DeepSeek-R1 AI models were made available to the world, people started asking how you can use...
12 days ago
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
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...
18 days ago | 0
Published
Visualizing yesterday’s earthquake in Boston using MATLAB and a Raspberry Shake
During an online meeting with my colleagues in Boston yesterday, some of them were rather startled when their offices...
19 days ago
![Thumbnail](http://blogs.mathworks.com/matlab/files/2025/01/bostonQuake_1.png)
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 ...
1 month 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...
1 month 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?
1 month ago | 2 answers | 3
2
answersPublished
Debugging support in the MATLAB extension for Visual Studio Code
Since its April 2023 launch, the MATLAB extension for Visual Studio Code has been extremely popular with over 329,000...
2 months ago
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
How 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...
2 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...
2 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...
2 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...
2 months ago | 2
Solved
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
2 months ago
Published
Solving Higher-Order ODEs in MATLAB
In a comment to last year's introduction to the new ODE solution framework in MATLAB, Ron asked if I could provide an...
2 months ago
![Thumbnail](http://blogs.mathworks.com/matlab/files/2024/12/HighODE2_1.png)
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...
2 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...
2 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 ...
2 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...
2 months ago | 1
Vectorized code slower than loops
I made a couple more modifications and came up with a double for-loop that is fastest. One thing that I'd like to point out her...
2 months ago | 1
How can I use the LAPACK implementations included in Apple Accelerate Framework with MATLAB R2024b?
You can switch the BLAS to Apple Accelerate as described in Life in the fast lane: Making MATLAB even faster on Apple Silicon wi...
2 months ago | 0
| accepted
Massive slowdown for Apple Silicon in computing SVD
Hi I have reproduced your times on my M2 MacbookPro using R2024b using both the default BLAS and also the Apple Silicon BLAS as...
2 months ago | 1
| accepted
Published
NumPy in MATLAB
I've been a user of Python for almost as long as I've been a user of MATLAB and am very comfortable with both ecosystems. As...
2 months ago
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
Published
20 years of supercomputing with MATLAB
While prepping for the SC24 supercomputing conference with the rest of the MathWorks crew I idly wondered when Parallel...
3 months ago
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
Published
Linear Programming, the HiGHS Optimization library and MATLAB
What is linear programming?Linear programming (LP) is a mathematical method used to determine the best possible outcome...
3 months ago
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
Solved
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
4 months ago
Solved
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
4 months ago