Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to write this function in Matlab?

조회 수: 3 (최근 30일)
Kiyoko Christian Mwizu
Kiyoko Christian Mwizu 2020년 10월 20일
마감: KSSV 2020년 10월 20일
Where indicated in the script below, write a function, called myflip, which accepts one vector, v, (either a column or row), and outputs the same vector, v, of the same dimensions, but with the values in reverse order (as the MATLAB built-in flip() function does). In other words, v will be overwritten by its flipped version. In your function, you may use only the built-in MATLAB functions, length( ) and floor(), the latter of which will be useful for stopping the loop. (You need only one loop here, as opposed to nested loops.)

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by