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
Karo-lina-s [1.5K]
3 years ago
6

Column arrays: Transpose a row array Construct a row array countValues with elements 1 to endValue, using the double colon opera

tor. Transpose countValues to result in a column array. Function Save Reset MATLAB DocumentationOpens in new tab function countValues = CreateArray(endValue) % endValue: Ending value of countValues % Construct a row array countValues with elements 1 to endValue, % using the double colon operator countValues = 1; % Transpose countValues to result in a column array end 1 2 3 4 5 6 7 8 9 10 11 Code to call your function

Engineering
1 answer:
White raven [17]3 years ago
7 0

Answer:

Matlab code with step by step explanation and output results are given below

Explanation:

We have to construct a Matlab function that creates a row vector "countValues" with elements 1 to endValue. That means it starts from 1 and ends at the value provided by the user (endValue).  

function countValues = CreateArray(endValue)

% Here we construct a row vector countValues from 1:endValue

     countValues = 1:endValue;

% then we transpose this row vector into column vector

     countValues = countValues';

 end

Output:

Calling this function with the endValue=11 returns following output

CreateArray(11)

ans =

    1

    2

    3

    4

    5

    6

    7

    8

    9

   10

   11

Hence the function works correctly. It creates a row vector then transposes it and makes it a column vector.

You might be interested in
The electricity generated by wind turbines annually in kilowatt-hours per year is given in a file. The amount of electricity is
Anika [276]

Answer:

Steps:

1. Create a text file that contains blade diameter (in feet), wind velocity (in mph) and the approximate electricity generated for the year

2.  load the data file for example, in matlab, use ('fileame.txt') to load the file

3. create variables from each column of your data

  for example, in matlab,  

     x=t{1}

     y=t{2}

4. plot the wind velocity and electricity generated.

   plot(x, y)

5. Label the individual axis and name the graph title.

    title('Graph of wind velocity vs approximate electricity generated for the year')

     xlabel('wind velocity')

     ylabel('approximate electricity generated for the year')

5 0
3 years ago
Read 2 more answers
Hot air at an average temperature of 100 degC flows through a 3 m long tube with an inside diameter of 60 mm. The temperature of
Arte-miy333 [17]

Answer:

\dot Q = 912.017\,W

Explanation:

The heat transfer rate due to convection is calculated by this formula:

\dot Q = h_{air}\cdot A_{tube, in}\cdot (T_{air} - T_{tube})

The output is determined by replacing terms:

\dot Q = (20.1\,\frac{W}{m^{2}\cdot ^{\textdegree}C})\cdot (\pi )\cdot (0.06\,m)\cdot (3\,m)\cdot (100^{\textdegree}C-20^{\textdegree}C)

\dot Q = 912.017\,W

6 0
3 years ago
Read 2 more answers
Using the background information provided and your answers to questions 1 & 2, look at the hex packet below and identify the
yanalaym [24]

Answer:

Goal address: Based on the above Ethernet outline design, we get that the goal address begins from the first hex worth and is of size 12 hex values (got from question 1). In light of the bundle given, we get that the goal address is 6c40 0889 c448.  

Source address: Similarly, the source address begins after the goal address and is of size 12 hex values (got from question 1). Thus, the appropriate response is f832 e4a7 fb38.  

Type/Length: The sort/length begins after the source address and is of size 4 hex values (got from question 1). Thus, the appropriate response is 0806.  

Data (Payload): The data(payload) begins after the sort/length and finishes not long before FCS(Checksum) which is of 4 bytes for example 4 * 2 = 8 hex qualities. So the information comprises of everything between the 'type/length' and 'CRC'. We persuade the CRC to be c0a8 01f2. Henceforth, the appropriate response is 0001 0800 0604 0002 f832 e4a7 bf38 c0a8 0101 6c40 0889 c448.  

Question 4:  

The Ethernet parcel type characterizes the convention utilized for sending the bundle information. We realize that type 0x0800 demonstrates the IPv4 convention, 0x0806 shows an ARP convention, and 0x86DD demonstrates an IPv6 convention. In light of the appropriate response we got in Question 3, we realize that the sort/length esteem for the given parcel is 0806, which implies that convention utilized for sending the information bundle was ARP convention.

8 0
3 years ago
Technician A states that air tools generally produce more noise than electric tools, so wear ear protection when using air tools
dusya [7]

Answer:

Both Technician A and Technician B are correct

Explanation:

Air tools and electric tools are both power tools as they are used to make work easier. Air tools generally use an air compressor that powers the motor of the tool making it possible to use it while electric tools as the name implies are powered by an electric source which in this case is batteries. An example of an air tool is the nail gun which can be used by furniture makers to drive nails and they are often louder than electric tools because of vibrations caused by the compressor making it necessary to use ear protection when using the tool for ear safety.

Technician B  is also correct because it is always advisable to use impact sockets while using impact guns due to the ability of the impact sockets to withstand the force caused by operating impact guns and make work neater when nuts and bolts are being loosened or tightened.

5 0
3 years ago
The two aircraft did not collide but missed each other by no more than a millimeter. Are you required to notify any government a
PilotLPTM [1.2K]
Yes all aircraft near collision events must be notified to the FAA and Air Traffic Control
3 0
2 years ago
Other questions:
  • The purpose of adjusting your mirrors is to _________.
    6·1 answer
  • -1 1/6 divided by 2 1/3
    10·1 answer
  • What is cooking with a fossil fuel? What is a fossil fuel?
    7·1 answer
  • Are there specific building code requirements for the installation of specialized water-based fire protection systems?
    10·1 answer
  • a triangle is defined by the three vertices. write the following functions of the triangle class assume that the point class has
    7·1 answer
  • Define coordination number. How does this differ from atomic packing factor?
    7·1 answer
  • An air-conditioner with refrigerant-134a as the working fluid is used to keep a room at 23°C by rejecting the waste heat to the
    15·1 answer
  • The ________________ attraction between the Earth and the moon is ______________ on the side of the Earth that happens to be ___
    5·1 answer
  • Explain why it is important to model the context of a system that is being developed. Give two examples of possible errors that
    10·1 answer
  • It is an important part of the differential maintenance which purpose is to make smoother the differential operation by lubricat
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!