Which command in matlab is to delete all the variables

Assignment Help Civil Engineering
Reference no: EM13550306

1. If b is a matrix that is 12 rows by 8 columns then, we execute this command in MATLABb = b' then the size of b is

a. 12x12

b. 8x8

c. 8x12

d. 12x8

2. If MATLAB displays a =1.0110e+002, then Answer

a. a = 10.11

b. a = 1011

c. a = 1.011

d. a = 101.1

3. If a = e5, how would enter it in MATLAB?

a. a = 1e5

b. a = e^5

c. a = e5

d. a = exp(5)

4. What is the value for 60o in radians? If "format long" is used before displaying the result.

a. 1.05

b. 1.047197551196598

c. 1.047197551

d. 1.0472

5. Arrange the steps to solve problems in engineering and science (a-e)

State the Problem

Describe the input and output

Develop an algorithm

Solve the problem

Test the solution

6. Which of the following commands can be executed in MATLAB, if the variables m and c are defined prior to the command you select? Select all that may apply.

a. E = m*c*c

b. E = m*c^2

c. E = M*c2

d. E = mc^2

e. E = mc2

f. E = m*C^2

7. "ans" variable can be ONLY scalar value.

True False

8. Arrange the order of calculations perfomred in MATLAB.(a-d)

Parentheses first

Exponentiation

Multiplication / division

Addition / subtraction

9. If you want to compute 8 + 12, then multiply the result by 5, which command would you use in MATLAB?

a. (8+12)*5

b. (8+12]*5

c. [8+12]*5

d. {8+12}*5

10. If "b" is defined in MATLAB as:b = 1.0e+003 * Columns 1 through 7 0.1040 0.2080 0.3120 0.4161 0.5201 0.6241 0.7281 Columns 8 through 10 0.8321 0.9361 1.0402

What is b(7)?

a. 7.281

b. 0.7281

c. 728.1

d. 72.81

11. You can't use MATLAB on the Cloud in research and commercial applications.

True False

12. A vector is defined in MATLAB the same as is defined in Algebra.

True False

13. You can name a variable "ans" that you will be using later in other computations.

True False

14. Which of the following results in 1000?

a. e3

b. 1e3

c. 1*e3

d. 10exp(3)

15. How many elements are in variable A, if A = linespace(15,100,35)?

a. A is not defined

b. 1

c. 100

d. 35

16. If the size of b is shown on the workspace menu for MATLAB as 4x4, what type of variable b is?

a. Vector

b. 4-D matrix

c. 2-D matrix

d. Scalar

17. If we have the following commends in MATLAB:x = 10Range = [x:x/25:2*x],How many elements are stored in Range?

a. 25

b. 26

c. 20

d. 10

18. Which commend in MATLAB is used to list variables and their sizes?

a. variablesize

b. varsize

c. who

d. whos

19. It is not possible in MATLAB to generate 3-D arrays.

True False

20. Which command in MATLAB is to delete all the variables stored in the workspace?

a. clc

b. clear

c. cls

d. delete all

21. If you want to save data stored in workspace in MATLAB into a file name mydata.dat, which commend(s) do you use?

a. save workspace mydata.dat

b. save variables mydata.dat

c. save all mydata.dat

d. save mydata.dat

22. If variable Test(i,j) is selected so the first column represents the student number (1,2,..., 32), 2nd column represents the score of the first homework, 3rd column represents the score of the 2nd homework, etc. If there is a total of 6 homework for this class, what is the size of Test?

a. (32,6)

b. (32,7)

c. (6,32)

d. (7,32

Reference no: EM13550306

Questions Cloud

Compute the amounts for aerosmith company : Compute the amounts for Aerosmith Company: net sales, cost of goods purchased, cost of goods sold, gross profit, and net income.
Determine the inlet volumetric flow rate : Amomonia enters a refregeration system compressor operating at steady state at -18C, 138kPa. and exit at 150C, 1724kPa. The magitude of the power input to the compressor is 7,5kW and there is heat tranfser from the compressor to the surroundings at a..
Compute the depreciation expense under the method : Compute the depreciation expense under the methods for the year indicated - Straight-line for 2008.
Determine what is the thickness of the soap film : A thin soap film (n = 1.35) is suspended in air. The spectrum of light reflected from the film is missing two visible wavelengths of 490.8 nm and 589.0 nm, What is the thickness of the soap film
Which command in matlab is to delete all the variables : If variable Test(i,j) is selected so the first column represents the student number (1,2,..., 32), 2nd column represents the score of the first homework, 3rd column represents the score of the 2nd homework, etc. If there is a total of 6 homework for ..
Is it permissible to use darcys law under these circumstance : The water temperature is 14 C and the mean pore diameter is 0.33 mm. Is it permissible to use Darcy’s law under these circumstances? What is the reason for your answer?
Find the speed of the center of mass of two-cart system : Cart A, with a mass of 2 kg, travels on a horizontal air-track at 3 m/s and hits cart B, what is the speed of the center of mass of the two-cart system
Determine the total volume of the sandy silt : A 200,000 cubic m highway embankment is to be constructed at dry density of 1.85 Mg/m^3 and optimum moisture content of 16% by compacting sandy silt taken from a borrow pit. The in-situ bulk density of the sandy silt is 1.92 Mg/m^3 and its average wa..
A ferric chloride dosage of 40 mg/l and an equivalent dosage : A ferric chloride dosage of 40 mg/l and an equivalent dosage of lime are used to coagulate a water.

Reviews

Write a Review

Civil Engineering Questions & Answers

  Determine what is the number concentration

An aerosol with a lognormal size distribution has a count median diameter of 2.0 micron and a geometric standard deviation of 2.2. If the mass concentration is 1 mg/cubic meter what is the number concentration

  Determine total volume of the sandy silt for construction

The in-situ bulk density of the sandy silt is 1.92 Mg/m^3 and its average water content is 13%. determine: a) the total volume of the sandy silt that must be removed from the borrow pit for construction of the embankment

  Determine what is the objects mass in kilograms

A force of 1.25x103N is required to lift an object that is under the influence of an acceleration due to gravity of 7.66ft/sec2. What is the object's mass in kilograms?

  Calculate the concentration of methanol in the exit gases

You have a stream of air containing methanol at 5% by volume. The stream is flowing at 2000 actual ft^3/min at 1 atm pressure and 110 F. The regulations require94% removal of the methanol, and you decide to try a water absorption column, using pure w..

  Determine the specific entropy generation in a light bulb

Argon in a light bulb is at 110kPa, 70 degrees celsius. The light is turned off, so the argon cools to the ambient 20 degrees celsius. Disregard the glass and any other mass and find the specific entropy generation

  Determine what is the diameter of the capillary tube

You are designing a new thermometer using Galinstan, an alloy of gallium, indium, and tin that is a liquid at normal living temperatures. The coefficcient of thermal expansion is 190*10^-6 (1/kelvin).

  Determine lowest temperature at which 2-mm gap is closed

At a temperature of 9°C, a 2-mm gap exists between two polymer bars and a rigid support. Bars (1) and (2) have coefficients of thermal expansion of t1 = 102 x 10-6 /°C and t2 = 66 x 10-6/°C, respectively.

  Calculate the minimum flow rate

Calculate the minimum flow rate (m^3/hr) of river water needed to acheive pre cooling hot, pasteurized liquid prodcut assuming that 10% heat is lost to the surroundings during exchange and that the water temp after cooling should not exceed 25 deg..

  Determine the rate of heat transfer to the stock in furnace

Cylindrical, steel bar stock (density = 7833 kg/m3, Cp = 0.465 kJ/(kg C)) of 10-cm diameter is heat-treated by drawing it at a velocity of 3 m/min through a 6-m-long furnace maintained at 900C.

  How much energy in horsepower is lost by the water

A pipeline 1200 ft long and 8 in. in diameter has at its inlet point 75ft of available hydraulic energy with respect to the reference level. The velocity in the pipe is 5 fps: the pressure at its end is 12psi.

  What is the chlorine concentration when the tank is put back

A water tower containing 4000 m3 of water has been taken out of service to install a chlorine monitor. The concentration of chlorine in the water tower was 2.0 mg/L when the tower was taken out of service.

  Predict the concentration distribution along the water table

The total saturated thickness of the aquifer is 15 m. Predict the concentration distribution along the water table after 5110 days, assuming a linear groundwater velocity of 1.6x10-3; dispersivities in x, y, and z of 5.0 m, 0.5 m, and 0.1 m

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd