Beantwortet
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...

etwa ein Jahr vor | 0

Beantwortet
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 ...

mehr als ein Jahr vor | 5

| akzeptiert

Beantwortet
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...

mehr als ein Jahr vor | 2

Beantwortet
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...

fast 2 Jahre vor | 3

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 0

Beantwortet
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...

fast 2 Jahre vor | 0

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

fast 2 Jahre vor | 2

Beantwortet
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 ...

fast 2 Jahre vor | 0

Beantwortet
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 ...

etwa 2 Jahre vor | 4

Beantwortet
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...

etwa 2 Jahre vor | 1

Beantwortet
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)

etwa 2 Jahre vor | 0

Beantwortet
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...

etwa 2 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

etwa 2 Jahre vor | 2

Beantwortet
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 ...

etwa 2 Jahre vor | 2

Beantwortet
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...

mehr als 2 Jahre vor | 9

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 1

Beantwortet
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...

mehr als 2 Jahre vor | 0

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 2 Jahre vor | 0

Beantwortet
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(...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 2 Jahre vor | 1

Beantwortet
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...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
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. ...

fast 3 Jahre vor | 1

Beantwortet
OCR on a screenshot
Hi Paolo Just because I am MathWorks staff doesn't mean anything here because until right now I've never used MATLAB's ocr func...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
i dont get why it says Unrecognized function or variable 'Nbin when i run it
It's because you have this line [count,center]=hist(x,Nbin); Nbin needs to be defined as the number of bins you want in the hi...

fast 3 Jahre vor | 0

Beantwortet
I would like to plot two bar charts side by side using separate y-axis for each corresponding plot.
Try tilledlayout. Documented at Create tiled chart layout - MATLAB tiledlayout (mathworks.com) % I want one row of plots with...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
arrayfun doesn't work with rmoutliers
arrayfun operates on every element of the array. So arrayfun(@rmoutliers,A,"UniformOutput",false) is like doing rmoutliers(0...

fast 3 Jahre vor | 0

Mehr laden