2 marks confirm your answers above by writing statements in matlab that calculate the probability and the median.
Exp in matlab means.
Y exp x returns the exponential for each element of x for complex it returns the complex exponential.
This matlab function estimates the mean of exponentially distributed sample data in the vector data.
The data type of y is the same as that of x.
Each element in r is the.
Mean of the exponential distribution specified as a positive scalar value or an array of positive scalar values.
Exponential values returned as a scalar vector matrix or multidimensional array.
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.
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.
Exp means exponential function.
Let x denote the lifetime of a component.
If a is a matrix then mean a returns a row vector containing the mean of each column.
Exponential values returned as a scalar vector matrix or multidimensional array.
The window size is automatically truncated at the endpoints when there are.
Its domain includes complex numbers.
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.
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.
The exp function is an elementary function that operates element wise on arrays.
To generate random numbers from multiple distributions specify mu using an array.
Run the command by entering it in the matlab command window.
The example you give would have a fraction in the exponent.
Y exp x description.
It s used when it is to much trouble or too expensive to add superscript on top of superscript.
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.
In other words exp x e x.
Use expm for matrix exponentials.
This dimension becomes 1 while the sizes of all other dimensions remain the same.
Exppdf is a function specific to the exponential distribution.
The data type of y is the same as that of x.