Question: Just Problem 2, 1-4 In matlab ENGR 1181Class Class_17_Application_B C17: Arrays and For loops You are being assigned three problems. Do all three problems in

 Just Problem 2, 1-4 In matlab ENGR 1181Class Class_17_Application_B C17: Arrays

Just Problem 2, 1-4

In matlab

ENGR 1181Class Class_17_Application_B C17: Arrays and For loops You are being assigned three problems. Do all three problems in one script file: Class_17_App.m Include comment statements to help organize your script file. Include the standard header. Problem 1 Create the following vector A=[4 8 12 16 20 24] four different ways. 1. A1 Typing in each element using commas/spaces to separate them 2. A2- Using the [first value : spacing : last value] notation 3. A3 - Using the linspace command 4. A4 - Using a for loop. The for loop must create the vector and add an element to it each time it passes through the loop. Problem 2 Create the following matrix B=123 three different ways. 1. 2. 3. 4. B1 - Typing in each element manually using commas, semicolons etc. to organize them B2 - Creating 3 vectors which are the three rows of B and combining together. B3- Creating 3 vectors which are the three columns of B and combining together Extra Credit: B4 - Using nested for loops (a for loop within a for loop)

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!