필터 지우기
필터 지우기

How to Estimate the exponent a?

조회 수: 2 (최근 30일)
Ege Tunç
Ege Tunç 2018년 12월 28일
댓글: Walter Roberson 2019년 1월 7일
P=e^-aT in matlab?
  댓글 수: 2
Jan
Jan 2018년 12월 28일
"P~e^-aT where x is the size of the shield" - x does not occur in this equation. Later we find: "where T is the size of the shield".
Walter Roberson
Walter Roberson 2019년 1월 7일
Please do not close questions that have an answer.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2018년 12월 28일
You have the equation P ~ exp(-aT). You determine the value of P by the simulation and have T as input parameter. Then it seems to be trivial to solve this equation to obtain a:
a = -log(P) / T
Instead of collecting the results in a diagram only, you need to store the final positions in an array. E.g.:
% x_t(1) = 0; % Remove this
% y_t(1) = 0; % Remove this
x_final = zeros(1, M);
y_final = zeros(1, M);
for m = 1:M
x_t = zeros(1, N);
x_t = zeros(1, N)
for n = 1:N-1 % Not until N, but N-1!
...
end
x_final(m) = x_t(N);
y_final(m) = y_t(N);
end
Now you can determine P by comparing the final positions with the goal.
  댓글 수: 1
Jan
Jan 2018년 12월 28일
편집: Jan 2018년 12월 28일
While "A=++" is no valid Matlab syntax, I assume you need something like this:
P = sum(x_final > T) / M;
a = -log(P) / T
I do not understand, why you ask for "x(N+1)=x(N)+1". I showed you a way to store the final positions and the method to calculate the parameter a based on the results of the simulation. Keep the rest as you like.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by