Answered
In the example, 25 images are generated. How do I generate one image
The imtile command should be removed when you only have one image: Go down to the Generate New Images section and change numObs...

2 years ago | 2

| accepted

Answered
python call MATLAB function Use Named Arguments
Try this yw = eng.wdenoise(signal, matlab.double(4), "Wavelet","sym2" )

2 years ago | 1

| accepted

Answered
How can I use source control programmatically?
Which version of MATLAB are you using? This functionality got added in R2023b. For example, you mentioned you wanted to check t...

2 years ago | 0

Answered
Plotting first-order differential equation with initial condition
In R2023b, a completely new interface for working with ODEs was released. The old ways are all still in MATLAB, of course, but ...

2 years ago | 4

Answered
Fortran compiler for M2 (Silicon) Apple processor
The supported Fortran Compiler for Apple Silicon in R2023b is the NAG Fortran Compiler. gfortran is not supported I'm afraid. T...

2 years ago | 0

Answered
Speeding up matrix exponentials
Don't let the fact that I'm MathWorks staff fool you here -- I am playing outside of my comfort zone and this suggestion may be ...

2 years ago | 5

| accepted

Answered
How to get the combinations of elements of two arrays?
As of MATLAB R2023a, the new combinations function can do this for you. Details at The new combinations function in MATLAB – fo...

2 years ago | 2

Answered
Mathworks: it's time for a dark theme.
Dark Theme in MATLAB is here! It's in beta, but its here! Details: Try Dark Mode on Desktop MATLAB with the ‘New Desktop for M...

2 years ago | 3

Answered
Help with ODE tolerance options
Thanks so much for including all of your code and data. It allowed me to run everything on my machine and use the profiler to f...

2 years ago | 0

Answered
Matlab equivalent to iPython Notebook
An update on this question: MathWorks have now released an official MATLAB kernel for Jupyter. Details at Official MathWorks MAT...

3 years ago | 0

Answered
How to install Matlab Jupyter engine on macOS
MathWorks have now released a MATLAB Kernel for Jupyter. You should find this easier to use! Official MathWorks MATLAB kernel fo...

3 years ago | 0

Answered
Jupyterhub with Matlab integration
MathWorks have now released a MATLAB kernel for Jupyter. Details at Official MathWorks MATLAB kernel for Jupyter released » The...

3 years ago | 2

Answered
How to hide code in live script files for others to not see?
How you proceed depends on what you mean by 'hide'. You can make the code disappear by clicking on the third icon on the right ...

3 years ago | 0

Answered
Efficient way of Vectorization
Switch the order of the loops around. It will be faster because you'll be operating on the matrix column-wise test function ...

3 years ago | 4

Answered
Macbook arm M1/M2 chip support
Yes. It is in development now. There was a beta released a few months ago that is no longer available Exploring the MATLAB beta...

3 years ago | 1

Answered
How can i plot this function? y=0.75/(log10(x)*2).^2
How about this? x = linspace(0.01,0.99,100); % Avoid tricky inputs like 1 y = 0.75./(log10(x)*2).^2; plot(x,y)

3 years ago | 0

Answered
Why aren't the first and last peaks detected using findpeaks()?
For vec1, the reason is that the peak is also the last data point and so is intentionally exlcuded. The findpeaks documentation...

3 years ago | 1

| accepted

Answered
sin(2*pi) vs sind(360)
If you ever need to compute sin(x*pi) or cos(x*pi), its better to do sinpi(x) or cospi(x). You never explicitly multily x by a ...

3 years ago | 2

Answered
Why in matlab sin(pi) is not zero but sin(pi/2) is 1?
If you ever need to compute sin(x*pi) or cos(x*pi), its better to do sinpi(x) or cospi(x). You never explicitly multily x by a ...

3 years ago | 2

Answered
Is there any concept like dictionary or hash tables in matlab like in Python?
As of R2022b, MATLAB has a new dictionary datatype An introduction to dictionaries (associative arrays) in MATLAB » The MATLAB B...

3 years ago | 9

| accepted

Answered
How to make dictionary in Matlab
In R2022b and later, you can use the new dictionary type for this. Faster than containers.map. A tutorial-like introduction at...

3 years ago | 0

| accepted

Answered
Dictionaries of Hashtables in MATLAB?
Reviving this thread in 2022 because R2022b contains a new dictionary data type. A tutorial-like introduction at An introductio...

3 years ago | 1

Answered
Faster alternative to containers.Map
MATLAB R2022b has a new dictionary datatype that's much faster than containers.map. A tutorial-like introduction at An introduc...

3 years ago | 0

Answered
how to remove/kill the figure produced with colormap
If the colormap is the most recent command you've executed, it will be the current figure. As such, you can use delete(gcf) W...

3 years ago | 0

| accepted

Answered
How do I know how large an array can fit on the GPU?
As you've seen, gpuDevice() gives you information about your GPU. This is what I get for mine >> gpuDevice() ans = CUDA...

3 years ago | 0

| accepted

Answered
process based parpool: keep the data in the workers
Parfor is great, it auto-parallelises for us and takes care of a lot of things like data transfer to/from workers and so on. At ...

3 years ago | 0

Answered
using matlab compiler to read a .mat file at run time
You can tell the compiler to exclude things using an Exclude pragma A demo: I created a .mat file as follows myvar = 1; save(...

3 years ago | 1

| accepted

Answered
Is MATLAB supported on Apple Silicon Macs?
Blog post on this topic at Exploring the MATLAB beta for Native Apple Silicon » The MATLAB Blog - MATLAB & Simulink (mathworks.c...

3 years ago | 2

Answered
Anderson Darling Goodness-of-the-fit test?
The statistics toolbox has an adtest function. It can test against a specific distribution with known parameters, or a more gene...

3 years ago | 1

| accepted

Answered
Using Parfor for solving ODE via numerical methods (Euler)
As others have said, you cannot parallelise this loop. However, what you can do is parallelise independent runs of this loop. ...

4 years ago | 1

Load more