Hello
I have tried to work on smoothing of data and I came across this code. I dont really understand what the number 1s at the end means. Can anyone help please?
for i = (width-fix(width/2)))-1:-1:1

댓글 수: 4

David Hill
David Hill 2020년 9월 4일
i is starting at (width-fix(width/2))-1 and stepping down in -1 increments to 1.
Danny Maefengea
Danny Maefengea 2020년 9월 4일
Thank you Sir.
Adam Danz
Adam Danz 2020년 9월 4일
Looks like a good answer to me, David (hint to copy the comment as an anwer 😉) .
Danny, note the typo in your question that David corrected in his solution (one too many closing parentheses).
Danny Maefengea
Danny Maefengea 2020년 9월 4일
Oh thank you Sir, point noted.

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

답변 (0개)

카테고리

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

제품

릴리스

R2020a

태그

질문:

2020년 9월 4일

댓글:

2020년 9월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by