# Mike Croucher

**Statistics**

RANK**550**

of 265,060

REPUTATION**114**

CONTRIBUTIONS

**0** Questions

**26** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**27**

RANK

of 18,108

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**1** Highlight

AVERAGE NO. OF LIKES**23**

**Content Feed**

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

1 day ago

Is there any concept like dictionary or hash talbes 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...

12 days ago | 5

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

12 days ago | 0

| accepted

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

12 days ago | 1

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

12 days ago | 0

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

28 days ago | 0

| accepted

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

1 month ago | 0

| accepted

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

2 months ago | 0

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

5 months ago | 1

| accepted

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

5 months ago | 1

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

6 months ago | 1

| accepted

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

7 months ago | 1

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

7 months ago | 2

| accepted

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

8 months ago | 0

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

8 months ago | 0

| accepted

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

9 months ago

Highlighted

Help us help you: Post your code

Every day, thousands of people ask questions on <https://mathworks.com/matlabcentral/answers/index MATLAB Answers> and many of t...

9 months ago | 23

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

9 months ago | 0

variables cannot be saved in matlab

This looks like an operating system error. In particular, you are trying to write to a folder where you don't have write permis...

9 months ago | 0

| accepted

Values are getting updated every 15 seconds in thingspeak. How do I lower this time?

I guess you are using the free tier of thingspeak which is limited to one update every 15 seconds. For faster updates, you'll n...

10 months ago | 2

| accepted

Double Integration error using /

You need to vectorise your equation alpha = 1.0; inte = @(y,x) (cos(x).^2)./(1 + alpha./(cos(x).*sqrt(1 - 1./y.^2))).^2.*(1./...

10 months ago | 1

fsolve gives the same value for different parameters of the nonlinear equation

It seems that chaging the paramet C_TIC from 0 to 2.78 doesn't affect the outpur much. I changed your function slightly so that...

10 months ago | 0

Converting MATLAB code into python code

Hi Aakash To get this running on a HPC system, it would be beneficial to know the details of the HPC system. As I said in my co...

10 months ago | 10

| accepted

What is the difference between lu() and decomposition([],'lu')?

The two output form of lu() does use a different algorithm compared to the decomposition object. Also, it is not possible to sa...

11 months ago | 0

| accepted

Zero elements in a matrix more higher than ones (MATLAB)

This is almost certainly not the most efficient way of doing it but it seems to work. Will need the statistics and ML toolbox f...

11 months ago | 0

| accepted

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

12 months ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

12 months ago

Different results compared to hand calculation?

I don't know the algorithm you are implementing but I can see some things in your code that look strange to me and can explain w...

12 months ago | 0

| accepted

R = rotx(ang), roty(ang), rotz(ang) is not working in my MATLAB.

As Scott mentioned, these are in Phase Array Toolbox. Since you have access to it on MATLAB Online, it must be included in your...

1 year ago | 1

| accepted

Is there any implementation for Mask R-CNN in Matlab?

There's an example on the MathWorks GitHub site matlab-deep-learning/mask-rcnn: Mask-RCNN training and prediction in MATLAB for ...

1 year ago | 1