필터 지우기
필터 지우기

Error using subsindex Function 'subsindex' is not defined for values of class 'prob.Expo​nentialDis​tribution'​.

조회 수: 1 (최근 30일)
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);

답변 (1개)

Steven Lord
Steven Lord 2015년 9월 20일
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by