1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Crank
4 years ago
5

Create a row vector vA=1:3:34 that has 12 elements. Then, create a new nine-element vector vB from the elements of vA such that

the first five elements are the first five elements of the vector vA, and the last four are the last four elements of the vector vA. Use the colon symbol to address a range of elements. (Do not type the elements of the vector vA explicitly.)
Mathematics
1 answer:
gregori [183]4 years ago
3 0

Step-by-step explanation:

Create a row vector vA=1:3:34 that has 12 elements.

Matlab Code:

vA = [1:3:34]

Where vA = [starting element:difference:ending element]

Ouput:

vA =    1     4     7    10    13    16    19    22    25    28    31    34

Create a new nine-element vector vB from the elements of vA such that the first five elements are the first five elements of the vector vA, and the last four are the last four elements of the vector vA

Matlab Code:

% get first five elements from vector vA

vB1 = vA(1:5)

% get last four elements from vector vA

vB2 = vA(9:12)

% combine them together to form row vector vB

vB = [vB1, vB2]  (comma or space both are fine)

Ouput:

vB1 =       1     4     7    10    13  

vB2 =     25    28    31    34

vB =      1     4     7    10    13    25    28    31    34

You might be interested in
Please help this is timed! I’ll give brainliest.
aleksandrvk [35]

Answer:

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
How do you do the math for this?
makvit [3.9K]
For the answer to the question above asking, how much gas will you have to buy i<span>f you drive 50 miles each week and your car gets 25 miles to the gallon with gas costing $4.00 per gallon?
</span>The car will use 2 gallons of gas per week at $4 per gallon so you will have to buy $8 per week.
i hope my answer helped you.
8 0
3 years ago
Which pair of events is dependent?
nekit [7.7K]
Believe D wjwjammlsodiejwbwbnas
7 0
3 years ago
Find the equation of the line.<br> Use exact numbers.<br> y =<br> X +
puteri [66]

Answer:

y =  \frac{3}{4} x - 2

Step-by-step explanation:

Remmeber this:

slope =  \frac{rise}{run}

The y-intercept is where the lone goes through the y-axis.

5 0
3 years ago
Determine if the following triangles are similar. If they are similar, choose their justification. If they are not similar, choo
Dennis_Churaev [7]

Answer:AA~

Step-by-step explanation:

6 0
3 years ago
Other questions:
  • 1 over 10 equals what percent
    13·1 answer
  • Please giving 20 points!!!
    12·1 answer
  • Jordan is a student who hates to be called on in class. His teacher randomly calls on students and Jordan knows that on any give
    6·1 answer
  • A woman spent two thirds of her money she lost two thirds the remainder and then had $4 left how much money did she start with
    14·2 answers
  • 317,081 in expanded form
    9·2 answers
  • A table has an area of 12 and a perimeter of 16 ft. What are the dimensions of the table?
    10·2 answers
  • What are formed by perpendicular lines?
    10·1 answer
  • Complete the square to rewrite the following equation. Identify the center and radius of the circle. You must show all work and
    14·1 answer
  • Question 3
    13·1 answer
  • 1. (2 marks) Ten persons will stand in a line. 3 males and 7 females. In how
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!