Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

can anyone help me ??

1 view (last 30 days)
neveen aburomman
neveen aburomman on 21 Dec 2016
Closed: John D'Errico on 22 Dec 2016
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 Comments
David Barry
David Barry on 21 Dec 2016
Try this.
in = 'can somebody do my homework for me';
out = strrep(in, in, char([110, 111]))

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!