2 marks confirm your answers above by writing statements in matlab that calculate the probability and the median.
Exp in matlab means.
Use expm for matrix exponentials.
This matlab function estimates the mean of exponentially distributed sample data in the vector data.
Let x denote the lifetime of a component.
The lifetime of an electronic component has an exponential distribution with a mean lifetime of 100 hours.
Its domain includes complex numbers.
For real values of x in the interval inf inf y is in the interval 0 inf for complex values of x y is complex.
Expm log log10 expint.
If a is a matrix then mean a returns a row vector containing the mean of each column.
It s used when it is to much trouble or too expensive to add superscript on top of superscript.
Exponential values returned as a scalar vector matrix or multidimensional array.
Statistics and machine learning toolbox also offers the generic function pdf which supports various probability distributions to use pdf create an exponentialdistribution probability distribution object and pass the object as an input argument or specify the probability distribution name and its parameters.
The exp function is an elementary function that operates element wise on arrays.
For real values of x in the interval inf inf y is in the interval 0 inf for complex values of x y is complex.
Exponential values returned as a scalar vector matrix or multidimensional array.
If a is a vector then mean a returns the mean of the elements.
The data type of y is the same as that of x.
Y exp x returns the exponential for each element of x for complex it returns the complex exponential.
The window size is automatically truncated at the endpoints when there are.
Exppdf is a function specific to the exponential distribution.
In other words exp x e x.
This dimension becomes 1 while the sizes of all other dimensions remain the same.
The example you give would have a fraction in the exponent.
When k is even the window is centered about the current and previous elements.
Run the command by entering it in the matlab command window.
If a is a multidimensional array then mean a operates along the first array dimension whose size does not equal 1 treating the elements as vectors.
M movmean a k returns an array of local k point mean values where each mean is calculated over a sliding window of length k across neighboring elements of a when k is odd the window is centered about the element in the current position.
Exp means exponential function.
Y exp x description.
Mean of the exponential distribution specified as a positive scalar value or an array of positive scalar values.