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
Ganezh [65]
3 years ago
8

Write a function separatethem that will receive one input argument which is a structure containing fields named length and width

, and will return the two values separately. Here is an example of calling the function >> myrectangle = struct('length',33,'width',2); You just created a structure myrectangle with the above line of code. Now, if you send myrectangle into separatethem function, it should access the length and width fields and store it in output variables l and w (Again, no tips or tricks! do not overthink on this one. Just access the fields length and width from myrectangle input argument and store it in output variables l and w >> [l w] = separatethem(myrectangle) l = 33 w = 2
Engineering
1 answer:
SpyIntel [72]3 years ago
6 0

Answer:

%seperatethem.m

%Creation and definition of functions

function [l w] = separatethem(myrectangle)

%Call the structure field length.

l = myrectangle.length(1);

%Call the structure field length.

w = myrectangle.width(1);

%Ending call function.

end

%trial of program

%Create a structure with two fields length and width.

myrectangle = struct('length',33,'width',2);

%Call the function separate them.

[l w] = separatethem(myrectangle)

You might be interested in
What are the characteristic features of stress corrosion cracks?
Oduvanchick [21]

Answer and Explanation:

The crack formation growth that takes place in an environment corrosive.

Stress corrosion cracks can be defined as the spontaneous failures of the metal alloy as a result of the combined action of corrosion and high tensile stress.

Some of the characteristic features of stress corrosion cracks are:

  • These occur at high temperatures.
  • Occurrence of failures in metals mechanically.
  • Occurrence of sudden and unexpected failures under tensile stress.
  • The rate of work hardening of the metal alloy is high.
  • Time
  • An environment that is specific for stress corrosion cracking.
5 0
3 years ago
A rigid tank contains an ideal gas at 40°C that is being stirred by a paddle wheel. The paddle wheel does 240 kJ of work on the
Sergeu [11.5K]

To solve the problem it is necessary to consider the concepts and formulas related to the change of ideal gas entropy.

By definition the entropy change would be defined as

\Delta S = C_p ln(\frac{T_2}{T_1})-Rln(\frac{P_2}{P_1})

Using the Boyle equation we have

\Delta S = C_p ln(\frac{T_2}{T_1})-Rln(\frac{v_1T_2}{v_2T_1})

Where,

C_p = Specific heat at constant pressure

T_1= Initial temperature of gas

T_2= Final temprature of gas

R = Universal gas constant

v_1= Initial specific Volume of gas

v_2= Final specific volume of gas

According to the statement, it is an isothermal process and the tank is therefore rigid

T_1 = T_2, v_2=v_1

The equation would turn out as

\Delta S = C_p ln1-ln1

<em>Therefore the entropy change of the ideal gas is 0</em>

Into the surroundings we have that

\Delta S = \frac{Q}{T}

Where,

Q = Heat Exchange

T = Temperature in the surrounding

Replacing with our values we have that

\Delta S = \frac{230kJ}{(30+273)K}

\Delta S = 0.76 kJ/K

<em>Therefore the increase of entropy into the surroundings is 0.76kJ/K</em>

8 0
3 years ago
The host at the end of the video claims that ___________ is crucial to his success as a driver. A. Reaction time B. A safe space
Snezhnost [94]

Answer:

answer is C. his seat belt

5 0
3 years ago
A water-filled manometer is used to measure the pressure in an air-filled tank. One leg of the manometer is open to atmosphere.
ddd [48]

Answer:

P = 150.335\,kPa (Option B)

Explanation:

The absolute pressure of the air-filled tank is:

P = 101.3\,kPa + \left(1000\,\frac{kg}{m^{3}} \right)\cdot \left(9.807\,\frac{kg}{m^{3}} \right)\cdot (5\,m)\cdot \left(\frac{1\,kPa}{1000\,Pa} \right)

P = 150.335\,kPa

4 0
3 years ago
Define what a glass transition is and what happens to a polymer because of it
lesya692 [45]

Answer:

 The glass transition occur when the given temperature gets drop below the temperature of the glass transition for the polymers. During the creases of the long range of the given motion, the polymer start changing from the state of hard into the form of brittle.

The range of the glass transition temperature are between the 0 to -150°C. The basic use of the polymer is basically depend upon the main properties of the polymer.

7 0
3 years ago
Other questions:
  • After informing his employer that he had cancer, Maury was abruptly fired. The federal legislation that prohibits discrimination
    6·1 answer
  • What is the name of the model/shape below?
    5·2 answers
  • What's mutual inductance​
    8·1 answer
  • A Canadian visitor says that we have a great day in Chattanooga because it's 30 degrees. What would the temperature be in Farenh
    15·1 answer
  • Stainless steel ball bearings (rho = 8085 kg/m3 and cp = 0.480 kJ/kg·°C) having a diameter of 1.2 cm are to be quenched in water
    10·2 answers
  • Suppose three companies, Optimax, Megachug, and Thirstoid, dominate the sports drink market. Optimax enjoys the largest market s
    9·1 answer
  • A three-phase transformer bank consists of 3 single-phase transformers to handle 400 kVA witha 34.5kV/13.8kV voltage ratio. Find
    7·1 answer
  • Help please!!!!!
    12·1 answer
  • Which of following is not malicious ?<br> Worm<br> Trogan Horse<br> Driver<br> Virus
    8·1 answer
  • At the beginning of last year, tarind corporation budgeted $1,000,000 of fixed manufacturing overhead and chose a denominator le
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!