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
Vlad1618 [11]
3 years ago
11

Double colon operator: Increment by x Construct a row array countValues from 0 to 25, elements incremented by incrementValue. Ex

: If incrementValue is 5, countValues should be [0, 5, 10, 15, 20, 25]. Function Save Reset MATLAB DocumentationOpens in new tab function countValues = CreateArray(incrementValue) % incrementValue: Amount each element in countValue is incremented by % Create a row array countValues from 0 to 25, % elements incremented by incrementValue countValues = 0; end 1 2 3 4 5 6 7 8 Code to call your function Reset CreateArray(5) 1 Run Function
Engineering
1 answer:
Anton [14]3 years ago
7 0

Explanation:

In Matlab, we can create a function that constructs a row array countValues from 0 to 25, with elements incremented by a incrementValue, this can be done in two ways;

If the value of IncrementValue is hard-coded than it will only work for IncrementValue=5, on the other hand, if the value of IncrementValue is not hard-coded than we can call CreateArray() with different IncrementValue.

1. Increment Value is hard-coded

function countValues = createArray(IncrementValue)

IncrementValue = 5;

countValues = 0:IncrementValue:25;

disp(countValues)

end

Output:

CreateArray(5)

ans =      0     5    10    15    20    25

2. Increment Value is not hard-coded

function countValues = createArray(IncrementValue)

countValues = 0:IncrementValue:25;

disp(countValues)

end

Output:

CreateArray(5)

ans =      0     5    10    15    20    25

CreateArray(2)

ans =      0     2     4     6     8    10    12    14    16    18    20    22    24

CreateArray(10)

ans =       0    10    20

You might be interested in
If the bending moment (M) is 4,176 ft-lb and the beam is an 1 beam, calculate the bending stress (psi) developed at a point with
SpyIntel [72]

Answer:

Bending stress at point 3.96 is \sigma_b = 1.37 psi

Explanation:

Given data:

Bending Moment M is 4.176 ft-lb = 50.12 in- lb

moment of inertia I = 144 inc^4

y = 3.96 in

\sigma_b = \frac{M}{I} \times y

putting all value to get bending stress

\sigma_b = \frac{50.112}{144} \times 3.96  

\sigma_b =  1.37 psi

Bending stress at point 3.96 is \sigma_b = 1.37 psi

3 0
4 years ago
What is the velocity of flow in an asphalt channel that has a hydraulic radius of 3.404 m, length of 200 m and bed slope of 0.00
yKpoI14uk [10]

Answer:

The velocity of flow is 10.0 m/s.

Explanation:

We shall use Manning's equation to calculate the velocity of flow

Velocity of flow by manning's equation is given by

V=\frac{1}{n}R^{2/3}S^{1/2}

where

n = manning's roughness coefficient

R = hydraulic radius

S = bed slope of the channel

We know that for an asphalt channel value of manning's roughness coefficient = 0.016

Applying values in the above equation we obtain velocity of flow as

V=\frac{1}{0.016}\times 3.404^{2/3}\times 0.005^{1/2}\\\\\therefore V=10.000m/s

7 0
3 years ago
An inventor claims that he wants to build a dam to produce hydroelectric power. He correctly realizes that civilization uses a l
Mekhanik [1.2K]

Answer:

The problem is that the pumps would consume more energy than the generators would produce.

Explanation:

Water has a potential energy associated with the height it is at. The higher it is, the higher the potential energy. When water flows down into the turbines that energy is converted to kinetic energy and then into electricity.

A pump uses electricity to add energy to the water to send it to a higher potential energy state.

Ideally no net energy woul be hgenerate or lost, because the generators would release the potential energy and pumps would store it again in the water. However the systems are not ideal, everything has an efficiency and losses. The losses would accumulate and the generator would be generating less energy than the pumps consume, so that system wastes energy.

What should be done is closing the floodgates to keep the water up in the dam at night producing only the power that is needed and releasing more water during the day.

6 0
4 years ago
A 600 MW coal-fired power plant has an overall thermal efficiency of 38%. It is burning coal that has a heating value of 12,000
velikii [3]

Answer:

See step by step explanations for answer.

Explanation:

600 megawatts =

568 690.272 btu / second

thermal eficiency=work done/Heat supllied

0.38=568690.272/Heat supplied

Heat supplied=1496553.35btu /s

heat emmitted to the atmosphere=heat supplied -work done=(1496553.35-568690.272)=927863.1 btu/s

feed rate=(1496553.35)/12000=124.71 lb/s =10775184.1056 lb/day=5 387.472 ton / day

sulphur content released=(0.03*124.71)/(1.496553)=2.5 lb SO2/million Btu of heat input

so

the degree (%) of sulfur dioxide control needed to meet an emission standard=(2.5/0.15)*100=1666.67 %

the CO2 emission rate=220*(1.496553) =329.241 lb/s =12 903.0802 metric ton / day

5 0
3 years ago
You have an ac voltage of 10 sin(60t). Design a full wave bridge rectifier which will give you an output voltage that varies a m
Masteriza [31]

As there are 10 V, for Vp1, that is the peak-voltage of the source:

Vp1=10*\sqrt{2}=14.14 V

Then, transformer's theory says that the relation of transformations is:

V1/V2=a

Where V1 is the voltage in the primary and V2 in the secondary.

V1=14.14 V

V2=8.55 V

a=1.65

Then, with the 8.5 V, we find the real peak-voltage, taking in account that in the diodes we have a drop of 0.7 V each, so:

8.5 -1.4=7.1 V

And this will be called VpL

Now we proceed to calculate the mean voltage:

V_{mean}=VpL-(\frac{Vr}{2} )

Where Vr is the ripple voltage, we asume that is 1 V

So, Vmean = 6.6 V

Then we have

Vmean/R= I mean

We have that R=1000 Ohm

Imedia=6.6 V/1000 Ohm

Imedia=6.6 mAmps

Finally, we can calculate the capacitor:

C=Q/Vr

C=Imean/(Vr*2f)

Where f is 60Hz

C=6.6mA/(1V*120)

C=5.5 uFarads

Therefore:

C=5.5 uFarads that works at 12 V

6 0
3 years ago
Other questions:
  • Consider incompressible flow in a circular channel. Derive general expressions for Reynolds number in terms of (a) volume flow r
    5·1 answer
  • 10 kg/s Propane at 10 bar and 20 C is directed to an adiabatic rigid mixer and is mixed with 20 kg/s Propane at 10 bar and 40 C.
    11·1 answer
  • A cooking pan whose inner diameter is 20 cm is filled with water and covered with a 4-kg lid. If the local atmospheric pressure
    9·2 answers
  • Design an op amp circuit to average the input of six sensors used to measure temperature in restaurant griddles for a large fast
    7·1 answer
  • What types of degradations that can take place in polymers and ceramics?
    11·1 answer
  • Write a program that asks the user to input a vector of integers of arbitrary length. Then, using a for-end loop the program exa
    13·1 answer
  • A surface grinding operation is used to finish a flat plate that is 5.50 in wide and 12.500 in long. The starting thickness is 1
    9·1 answer
  • Question in Probability and Statistics 2<br>​
    10·1 answer
  • The most flexible and mobile method of supplying our need for mechanical energy has been the internal-__________ engine. (10 let
    9·2 answers
  • Hey guys! Anybody wanna talk, also i need math help.
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!