can anyone help me ??

Write a MATLAB script (called rev.m) which reads a number of strings from standard input and prints them in reverse order on the command window.
The input sequence is terminated with the string END.
Hint: Use a cell array!

3 Kommentare

James Tursa
James Tursa am 21 Dez. 2016
What have you done so far? Please post your code and ask specific questions about it. Then we can offer suggestions and corrections.
David Barry
David Barry am 21 Dez. 2016
Try this.
in = 'can somebody do my homework for me';
out = strrep(in, in, char([110, 111]))

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 21 Dez. 2016

Geschlossen:

am 22 Dez. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by