for t=1:n
[L(t)]=(1/(50)^(t))
[C(t)]=(1/(800))^(t);
end
For the 1st line (L(t)) i need to use the interval 1:n however for the 2nd line i need from n:1. How do i change t without changing the interval in the for loop?

 채택된 답변

Alan Stevens
Alan Stevens 2021년 3월 5일

0 개 추천

Insert
tau = n+1-t;
then raise 1/800 to the power tau.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Error Functions에 대해 자세히 알아보기

질문:

2021년 3월 5일

댓글:

2021년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by