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
Determine the total condensation rate of water vapor onto the front surface of a vertical plate that is 10 mm high and 1 m in th
castortr0y [4]

Answer:

Q =  63,827.5 W

Explanation:

Given:-

- The dimensions of plate A = ( 10 mm x 1 m )

- The fluid comes at T_sat , 1 atm.

- The surface temperature, T_s = 75°C  

Find:-

Determine the total condensation rate of water vapor onto the front surface of a vertical plate

Solution:-

- Assuming drop-wise condensation the heat transfer coefficient for water is given by Griffith's empirical relation for T_sat = 100°C.

                            h = 255,310 W /m^2.K

- The rate of condensation (Q) is given by Newton's cooling law:

                           Q = h*As*( T_sat - Ts )

                           Q = (255,310)*( 0.01*1)*( 100 - 75 )

                           Q =  63,827.5 W

8 0
3 years ago
Read 2 more answers
white Sands national monument is a large area made of white sand dunes. what is likely to be true of this area?​
Margarita [4]

Answer:

yes

Explanation:

because i said so

7 0
3 years ago
What are the mechanical properties of a geotextile that are of most importance when using it as a separator in an unpaved road s
Alekssandra [29.7K]

hey thanks for the point's i really needed them.. Cheers!

adhrtftgHDSRFDdhrgdrgfsdhrgfa

6 0
3 years ago
Two Technicians are discussing shock absorbers. Technician A says most shock absorbers help support vehicle weight. Technician B
yKpoI14uk [10]

Answer:

Both Technician A and B

Explanation:

In a vehicle suspension system, a shock absorber has the functions such as; limiting the movement of the vehicle, stabilizing the ride, stabilizing the tires of the vehicle, minimizing wear and tear in the vehicle and decreasing the overall suspension tear.  Some of the ways of maintaining shock absorbers is to inspect the strut for leaks.Shock oil sometimes leaks to cover the seals with a transparent liquid.

6 0
3 years ago
Why does the compression-refrigeration cycle have a high-pressure side and a low-pressure side?
Cloud [144]

Answer: D

Explanation:

8 0
2 years ago
Other questions:
  • (a) Determine the dose (in mg/kg-day) for a bioaccumulative chemical with BCF = 103 that is found in water at a concentration of
    11·1 answer
  • What is temperature coefficient of resistance
    12·1 answer
  • Power is a fundamental dimension. a) True b) False
    15·1 answer
  • Air at 7 deg Celcius enters a turbojet engine at a rate of 16 kg/s and at a velocity of 300 m/s (relative to engine). Air is hea
    7·1 answer
  • Write multiple if statements
    5·1 answer
  • The conditions at the beginning of compression in an Otto engine operating on hot-air standard with k=1.35 and 101.325 kPa, 0.05
    10·1 answer
  • Give six reasons why farmers cultivate on small land​
    5·1 answer
  • After adjusting your seat, your___ should be as closest possible to the back rest.
    14·1 answer
  • What can you add to a seatbelt ??<br> HELP ASAP
    15·1 answer
  • Tech A says that it is best to use a knife or other type of sharp tool to cut away the insulation when
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!