Community Profile

photo

Amr Hashem


faculty of engineering

77 total contributions since 2015

Amr Hashem's Badges

  • Thankful Level 3
  • Revival Level 2
  • First Answer

View details...

Contributions in
View by

Question


Separate Gaussian mixture distributions of 5 components.
I used this code (to fit data by gaussian mixture): binWidth = 1; %width of the bar equal 1 binCtrs = 0:binWidth:1...

2 years ago | 1 answer | 1

1

answer

Answered
How could I fit a mixture of gaussians to 1D data?
Another authorized answer https://www.mathworks.com/help/stats/examples/fitting-custom-univariate-distributions.html

2 years ago | 0

Answered
How could I fit a mixture of gaussians to 1D data?
Finally, I got it :) clear all clc close all tic %% Read the raw data [ndata text alldata] = xlsread('battery2.xlsx','l...

2 years ago | 1

| accepted

Answered
How to plot a Gaussian of mixture to a data?
I got it numComponents=4; paramEsts= gmdistribution.fit(Life,numComponents) MU=[paramEsts.mu(1);paramEsts.mu(2);paramEst...

2 years ago | 0

| accepted

Question


How to plot a Gaussian of mixture to a data?
I want to construct and 1D plot a uni-variate Gaussian Mixture with say four components where I already have its parameters incl...

2 years ago | 1 answer | 0

1

answer

Answered
How could I fit a mixture of gaussians to 1D data?
I find a code which help to determine the number of components: %using minimum value of AIC AIC = zeros(1,7); obj = cell(1...

2 years ago | 1

Question


How could I fit a mixture of gaussians to 1D data?
I have a data and i want to fit it by a mixture of gaussian, but I didn't know the existing number of gaussians. I use this c...

2 years ago | 3 answers | 1

3

answers

Answered
Gaussian Mixture pdf plot
what I could use instead of "makedist" if i didn't have the toolbox?

3 years ago | 0

Question


How to fit a data with mixture of gaussian distribution?
I have a failure data, and i am trying to find the best probability distribution to fit this data. I try many PDF like gener...

3 years ago | 0 answers | 0

0

answers

Question


plot an exponential curve to connect between two points
I want to draw a curve in a negative exponential shape like this green one: <</matlabcentral/answers/uploaded_files/48665/li%...

3 years ago | 2 answers | 0

2

answers

Question


How to match two data columns?
I have 2 excel sheets (each contain two columns( *Serial* & *ID*) 1st sheet(3708*2) 2nd sheet(2360*2)) <</matlabce...

4 years ago | 2 answers | 0

2

answers

Question


How to calculate the Anderson Darling Test ?
I want to test the goodness of fit of the model , so I use A-D test I am using matlab 2012a I got the function from an exc...

4 years ago | 1 answer | 0

1

answer

Question


how to draw a line bewteen two points using the exponential distribution?
I have this figure <</matlabcentral/answers/uploaded_files/39925/bathtub.jpg>> and I want to *draw a line* between the he...

4 years ago | 1 answer | 0

1

answer

Question


what is the function which calculate the area under curve like ''normspec '' ?
I am using a different probability distribution to fit a data but the tail didn't() reach zero (at x-axis) I want to deter...

4 years ago | 1 answer | 0

1

answer

Answered
how to merge two plots
if you want to add to plots in one figure: hold on if else please illustrate your question definetly

4 years ago | 0

Question


how to sum a group of gaussian distribution using "hist" ?
I want to add five gaussian distributions at different points on x-axis I try: n=500; H1 = normrnd(14,5,n,1); % genera...

4 years ago | 2 answers | 0

2

answers

Answered
how to prolong the fit distribution curve to reach x-axis ?
I got it... xgrid = linspace(-20,20,100);

4 years ago | 0

Question


how to prolong the fit distribution curve to reach x-axis ?
I got the best fit distribution to a failure rate (data) Now I want to prolong the fitted distribution curve to reach x-axis ...

4 years ago | 2 answers | 0

2

answers

Answered
using gampdf and gamfit
firstly you have to use: Y= gamfit(Data) % use Data not Y then use : G= gampdf(X,A,B) plot(X,G) the parameter...

4 years ago | 0

Question


find the best fit distribution that fits the data
how could I find the best probability distribution that fits a failure rate data? I try: val=[0;1;2;3;4;5;6;7;8;9;10;11;1...

4 years ago | 0 answers | 0

0

answers

Question


how to plot a histogram with distribution fitting?
I want to plot a *histogram with distribution fit*. I use this code: z=[1,2,3,4,5]; l = [ 502 3341; 724 3502; 1310 3379...

4 years ago | 2 answers | 0

2

answers

Answered
Data fitting with correlation coefficient
If you want to find " The best *curve* fitting", you can use cftool which is a graphical user interface. or you can us...

4 years ago | 0

Question


how to generate a traingular distrbution (sawtooth model) ?
I want to generate a random (n=100)sawtooth model with width (b=24) 1st (t=0)start at 0, 2nd at 1 .... nth at n=100 t is ...

4 years ago | 1 answer | 0

1

answer

Answered
How to extend the fitting curve in command
try: hold on before the extended plotting

4 years ago | 0

Question


how to plot exponential pdf over a distributed data ?
in order to find the best fit model I want to produce this figure (a data & best fit over it): <</matlabcentral/answers/u...

4 years ago | 1 answer | 1

1

answer

Question


how to prolong best fit line to reach to x-axis ?
I draw a best fit line <</matlabcentral/answers/uploaded_files/38745/1234.jpg>> but I want to prolong it to x-axis, how t...

4 years ago | 1 answer | 0

1

answer

Answered
how to search for multiple words anywhere in the sentence ?
that's work: D=alldata(:,126:130); idx = cellfun('isclass',D,'char'); idx(idx)=~cellfun('isempty',regexpi(D(idx),'ba...

4 years ago | 0

Question


how to search for multiple words anywhere in the sentence ?
I want to search for three words "Battery , power , failure" the three must exist in the sentence in any order to copy the cell ...

4 years ago | 3 answers | 0

3

answers

Load more