Error using subsindex Function 'subsindex' is not defined for values of class 'prob.ExponentialDistribution'.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Neela KrishnA Teja Tadikonda
el 19 de Sept. de 2015
Editada: Walter Roberson
el 20 de Sept. de 2015
Error using subsindex
Function 'subsindex' is not defined for values of class 'prob.ExponentialDistribution'.
Program is :
x=[0:0.01:10];
Px=makedist('Exponential','mu',0.2); % Number of arrivals perminute 5
y=pdf(Px,x);
0 comentarios
Respuestas (1)
Steven Lord
el 20 de Sept. de 2015
You have a variable named pdf in your workspace. MATLAB interprets your last command as an attempt to index into that variable with the distribution object rather than an attempt to call the pdf method of that object. Rename or clear that variable.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!