MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
how to make a function that generate uniformely distributed random matrix
Muhammad Usman Saleem - 2022-06-11

Hi every one..   I am going to make a function which takes three input arguments limit,a,b in that order. The function returns an a-by-b matrix of un...

Avoiding for loop with anova1
Zach - 2022-06-11

I have 2 large 3D matrices, and I've noticed that passing a DIM argument for the ttest2 function decreases the computational time on my computer subst...

How to plot a normalised cumulative histogram
Riti Patel - 2022-06-11

I've got a vector of data of length around 5000000. I'm trying to plot a cumulative histogram of this data. I've previously plotted a normalised histo...

Generating Poisson Distributions for a Fixed Number of Events
mttxc12 - 2022-06-09

I'm wondering if there's a straight forward way to generate a poisson distribution for a distribution for a fixed number of events. For example, I hav...

Applying z-score before scaling to [0,1]?
Sepp - 2022-06-09

Hello   I'm currently using neural network for classification of a dataset. Of course before doing classification either the data points or the featu...

why doesn't overfitting happen ?
Fereshteh.... - 2022-06-09

I wrote a code for classification, using a” patternnet “neural network to classify a dataset which is 2D two spiral dataset, all my data were 40 i...

Get parameters for normal distributions in Kernel fit of probability distribution
Darin - 2022-06-09

Using Kernel to fit a series of normal distributions, how can you read out the means and sigmas of the normals it comes up with?   Also, is there a w...

How to generate samples from a cauchy distribution
Erol - 2022-06-09

For an assignment I have to draw samples of different sizes from a Cauchy distribution in order to show that as the sample size increases, the mean do...

Strange behaviour in integral function in MATLAB
Abdal-bassir Abou El-ailah - 2022-06-08

I create two functions fx and fy as follows:   fx = @(x) ncx2pdf(x, 10, 1); fy = @(y) ncx2pdf(y + 25, 10, 10); Then, I define fs function as follows:...

Why is my generated weibull distribution generating only NaN numbers?
Gabs - 2022-06-08

I am fitting a Weibull distribution to a set of data "x" (10000 x 1). I want the distribution to have the same size. I am trying the following code XL...

Get a Free Consultation or a Sample Assignment Review!