wak(1)=poissrnd(60);
wk(1)=wak(1)
n=1;
while wk(n)<1000
n=n+1;
wak(n) = poissrnd(60);
wk(n) = wk(n-1)+wak(n)
end
how to delete the last value of "wk"
because the last value of "wk" more then 1000

 채택된 답변

Sam Chak
Sam Chak 2022년 4월 22일

1 개 추천

Perhaps you can try this to see if it is deleted.
wk(end) = []

추가 답변 (0개)

제품

릴리스

R2021a

질문:

2022년 4월 22일

댓글:

2022년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by