Community Profile

photo

Mike Croucher

Last seen: en dag ago Active since 2021

Statistics

All
  • MATLAB Flipbook Mini Hack Participant
  • Explorer
  • First Review
  • MATLAB Mini Hack 2022 Participant
  • Knowledgeable Level 3
  • 3 Month Streak
  • MATLAB Mini Hack Participant
  • Solver
  • Revival Level 1
  • First Answer

View badges

Content Feed

Answered
Do I need to move my files and update my path to use git in Matlab?
Hi Doug The way to think about it is that source control begins in a root directory and everything else related to that project...

2 dagar ago | 0

| accepted

Answered
Error using pyversion, Too many input arguments.
Hi Mukesh The pyversion command is no longer recommended. See the doc at (Not recommended) Change default version of Python int...

2 dagar ago | 0

Answered
dlarray abstract syntax tree
Hi Michael Good question! I didn't know either so I asked around internally and the answer is 'Currently not'. I'd like to add ...

25 dagar ago | 1

Answered
[Matlab in python] Does matlab engine supports a .m file whose input is a function handle?
Unfortunately, the MATLAB Engine for python does not support passing Python functions to MATLAB. Running the following in Python...

ungefär en månad ago | 0

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

ungefär en månad ago | 2

| accepted

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

ungefär en månad 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...

5 månader 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 ...

5 månader ago | 2

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

6 månader 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 ...

11 månader 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...

11 månader 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...

12 månader 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...

12 månader 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...

ungefär ett år 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...

ungefär ett år 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...

ungefär ett år 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 ...

ungefär ett år 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 ...

mer än ett år 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...

mer än ett år 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)

mer än ett år 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...

mer än ett år 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 ...

mer än ett år ago | 1

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

mer än ett år 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...

mer än ett år ago | 8

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

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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...

mer än ett år 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 ...

mer än ett år ago | 0

Load more