Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to write this function in Matlab?

5 visualizaciones (últimos 30 días)
Kiyoko Christian Mwizu
Kiyoko Christian Mwizu el 20 de Oct. de 2020
Cerrada: KSSV el 20 de Oct. de 2020
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.)

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by