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
One number is 3/8 of another number. The difference of the two numbers is 4.2. What is the lesser number
boyakko [2]

Answer:

2.52.

Step-by-step explanation:

If one number is x then the other = 3x/8.

Also x - 3x / 8 = 4.2

x - 0.375 x = 4.2

0.625x = 4.2

x = 4.2 / 0.625

x = 6.72.

So the lesser number is 6.72 * 0.375 = 2.52.

4 0
3 years ago
Work out the value of x.<br>Need answer soon :) ​
german

Answer:

x+20

Step-by-step explanation:

As we can see n the diagram, there are parallel traversals and one line, and the two angles given are same-side interior angles. We know that when there is parallel traversal, and we have same side interiors, the sum of the measure of the two angles are supplementary. Supplementary means 180 degrees, or a straight line.

So we plug everything in and we have  4x+5x=180 degrees

4x+5x=9x, so 9x=180

We divide by 9 on both sides to get the value of x, which is 20

Hope it helps!

6 0
3 years ago
If a dice is Rolled find the probibllity
goblinko [34]
Comeonshakeyourbodydothatcongaknowyoucantcontrolyourselfanylonger
7 0
3 years ago
What is the value of the 6 in 861
NISA [10]

Answer:

tens-or 60

Step-by-step explanation:

the 1 is in the ones place the 6 is in the tens place and the 8 is in the hudreths place.

6 0
4 years ago
Read 2 more answers
Question 1 (Essay Worth 1 points) Which of the following expressions are equivalent to –3.5(2 – 3n) – 2.5n? A: –7 – 8n B: –7 + 8
zzz [600]
B is the anwser that I got
5 0
3 years ago
Other questions:
  • Grace has one $10 bill and three $5 bills she spends 9.30 on a belt and $4.20 on snack how much money does grace have left
    7·2 answers
  • This is sooo confusing
    12·2 answers
  • What is the sum of the interior <br>angles of a quadrilateral?
    5·2 answers
  • What is a parallelogram​
    7·2 answers
  • Sandy works at a clothing store. She makes $7 per hour plus earns 10% commission on her sales. She worked 80 hours over the last
    8·1 answer
  • £50 is worth €65 how many euros is £220 worth
    15·1 answer
  • 3 over 15 space cross times space 13 over 15 space equals
    15·1 answer
  • a walking path BE in a park intersects intersects two sides of the park at their midpoints. You walk from point D to E, E to B,
    6·2 answers
  • Will give brainliest ASAP PLEASE HELP!
    15·1 answer
  • Joe ate 1/2 of a pound of peanuts in 1/3 of an hour.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!