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
Here are sketches of four triangles in each triangle the longest side is exactly 1cm the other length is given to 2 decimal plac
kakasveta [241]

ANSWER = 2.3

SJDEJNDJNJN

7 0
3 years ago
Evalue 5a+3b and (5+a)(3+b) for a=2 and b=4. How is the order of steps diferent for the two expression
galben [10]
5a+3b = 24 
(5+a)(3+b) = 49 

The order of steps are different because one requires multiplication then addition while the other one requires addition then multiplication. But one sure thing is that they both need substitution. 
7 0
3 years ago
Question 12(Multiple Choice Worth 5 points)
zubka84 [21]

where is the figure? I can't see it

8 0
2 years ago
PLS HELP ASAP THANKS ILL GIVE BRAINLKEST PLS THANKS PLS ASAP PLS PLS HELP
GenaCL600 [577]

<u>Question 15 Answer:</u> In this sentence, I will show how to print out a statement any number of times you want in Python. So, basically, to do this, we are going to use a for loop with the keyword range in the statement. Using this method, we can print out a statement any number of times we want by specifying that number in the range () function.

<u>Step-by-step explanation: </u>

Yw and pls mark me as brainiest

<u></u>

6 0
2 years ago
In math is -34 less than -9
melamori03 [73]
When dealing with negatives, the higher the number is, the lower the value is. therefore, -34 is less that -9.
6 0
4 years ago
Read 2 more answers
Other questions:
  • Destiny read 1/4of a book on the day she received it .the next day , read 5/8of the book . On the third day , she finished readi
    11·2 answers
  • Edison Research gathered exit poll results from several sources for the Wisconsin recall election of Scott Walker. They found th
    14·1 answer
  • Joshua used two wood beams, PC and QA, to support the roof of a model house. The beams intersect each other to form two similar
    11·2 answers
  • Find the slope of the line
    5·2 answers
  • Please help! (Will give brainliest answer and hearts) Thank you and have a nice day!
    14·1 answer
  • Whats 1 2/3 as a improper fraction?<br> *(Help)
    13·2 answers
  • the perimeter of a rectangle is 34 units. its width is 6.5units write an equation to determine the length (L) of the rectangle
    12·1 answer
  • In parallelogram LMNO, MP = 21 m, LP = (y + 3) m, NP = (3y – 1) m, and
    9·2 answers
  • Rhonda has $315 in her saving account. She wants to save at least $585. Write and
    10·1 answer
  • Christmas bulbs made of different colours are set to light after 8seconds,10 seconds and 14 seconds. How many times will they li
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!