Problem

MATLAB

Consider the following nested cell vector,

List = { {'M','A','T','L','A','B'}, {' '}, {'i','s'}, {' '}, {'a'}, {' '}, {'s','t','r','a','n','g','e'}, {', '}, {'b','u','t',' '}, {'p','o','p','u','l','a','r'}, {' '}, {'p','r','o','g','r','a','m','m','i','n','g',' ','l','a','n','g','u','a','g','e'} };

Write a MATLAB script extractLetter.m that uses for-loop to extract all the letters in the variable list and finally prints them all as a single string like the following,

extractLetter
MATLAB is a strange, but a very capable popular programming language.

Comments