Write a script that creates a cell array of strings each


Problem

Write a script that creates a cell array of strings, each which is a two-word phrase. The script is to write the first word of each phrase to a file "examstrings.dat" in the format shown below. You do not have to error-check on the file open or file close . The script should be general and should work for any cell array containing two-word phrases.

Example cell array:

{'hi there', 'hello all', 'I did'}
Example output in file:

Word 1: hi Word 2: hello Word 3: I
% create cell array of strings with each cell containing a two-word phrase.

strca =

% write the first word of each phrase to a new line using the format in the problem description.

Request for Solution File

Ask an Expert for Answer!!
Business Management: Write a script that creates a cell array of strings each
Reference No:- TGS02781005

Expected delivery within 24 Hours