Question: This is MATLAB Create three cell array variables that store people's names, verbs, and nouns. For example, names = {'Harry', 'Xavier', 'Sue'}; verbs = {'likes',

This is MATLAB

Create three cell array variables that store people's names, verbs, and nouns. For example, names = {'Harry', 'Xavier', 'Sue'}; verbs = {'likes', 'eats', 'makes'}; nouns = {'baseballs', 'rocks', 'sushi'}; Write a script that will initialize these cell arrays in the variables "names", "verbs", and "nouns" and will create a sentence (stored in the variable "sentence") using one random element from each cell array (e.g. "Xavier eats baseballs"). Every element must be a single word. For example, "fish" is a valid element of the nouns list but "fried clams" is not.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!