Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to write this function in Matlab?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!