Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7) Create a cell array with 5 rows and three columns. The first two columns should contain a first name and last name, respectively. The

image text in transcribed
image text in transcribed
7) Create a cell array with 5 rows and three columns. The first two columns should contain a first name and last name, respectively. The final column should contain postcodes. The data should match the following table: cestr(biggest): f=count (biggest): 6) Write a script which converts mechanical horsepower (hp) to Watts (W). Note that 1 hp is equal to 745.7 W. The script should prompt the user to enter hp and return the answer in Win a sentence. hp=input("Enter hp : "); W=hp745.7; disp('The answer in Wis: , num2 str(W)]); 7) Create a cell array with 5 rows and three columns. The first two columns should contain a first name and last name, respectively. The final column should contain postcodes. The data should match the following table: First Name Last Name Postcode Andrew Aaronson 2400 Betty Brown 2400 Charles Copland 2450 Drew Dent 2400 Eric Eastaway 2469 Once your cell array is created, write code that will create a new cell array containing only people's names that have a postcode 2400. The code should contain a loop and an if statement and should work for any cell array in the given form with an unknown number of rows. Test your code with additional entries after Eric Eastaway. 0, 4 % 5 & 7 C 9 6 8 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

3. What may be the goal of the team?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago