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
Risks can be changed.<br> True<br> False
Mrrafil [7]

Answer:

true

Explanation:

8 0
3 years ago
..................................................
Scorpion4ik [409]
..................................................
3 0
3 years ago
Read 2 more answers
A driver takes 3.5 s to react to a complex situation while traveling at a speed of 60 mi/h. How far does the vehicle travel befo
victus00 [196]

Answer:

x = 93.8 m.

Explanation:

During the entire the reaction time interval, the vehicle continues moving at the same speed that it was moving, i.e., 60 mi/hr.

In order to calculate the distance in meters, travelled at that speed, it is advisable first to convert the 60 mi/hr to m/seg, as follows:

60 mi/hr = 60*\frac{1hr}{3,600s}*\frac{1,605m}{1mi} = 26.8 m/s

Applying the definition of average velocity, we can solve for Δx, as follows:

Δx = 26.8 m/s* 3.5 s = 93.8 m

7 0
3 years ago
Determine the general lighting load for a two-story office building that measures 125 feet by 150 feet.
Irina-Kira [14]

The general lighting load for a two-story office building that measures 125 feet by 150 feet is 112, 500 sq ft.

<h3>What is lighting load?</h3>

Lighting loads are the energy used to power electric lights and they make up nearly a third of US commercial building energy use.

Lighting load = n(LW)

where;

  • L is length of the building
  • W is width of the building
  • n is number of story building

For one story building, = 3

For two story building, n = 6

Lighting load = 6 x 125 x 150 = 112, 500 sq ft.

Learn more about lighting load here: brainly.com/question/14070748

#SPJ12

7 0
2 years ago
The terms batten seam, standing seam, and flat seam all describe types of:
abruzzese [7]

Answer:

<em> (A) architectural sheet metal roofing</em>

Explanation:

 By the <em>name itself we can judge</em> that the <em>'Architectural sheet metal roofing'</em> is a <em>kind of metal roofing</em>.

And these type of metal roofing is primarily used for small and big houses, small buildings and as well as in a building that is for commercial use they can be totally flat as well as little bit sloped.  

And the words similarly like<em> </em><em>batten and standing seam</em>, and <em>flat seam all tells us that these are the types of</em> architectural sheet metal roofing.

5 0
3 years ago
Other questions:
  • For the SR-latch below high levels of Set and Reset result in Q= 1 and 0, respectively. The next state is unknown when both inpu
    12·1 answer
  • Suppose you are designing a sliding window protocol for a 1 Mbps point-to-point link to the moon, which has a one-way latency of
    10·1 answer
  • A water tower that is 90 ft high provides water to a residential subdivision. The water main from the tower to the subdivision i
    10·1 answer
  • The pads are 200mm long, 150 mm wide and thickness equal to 12mm. 1- Determine the average shear strain in the rubber if the for
    10·1 answer
  • Which element refers to musically depicting the emotion in the words of a musical piece?
    14·1 answer
  • While recharging a refrigerant system, the charging stops before the required amount of refrigerant has been inserted. What shou
    8·1 answer
  • Question 8 (1 point)
    5·1 answer
  • 1. Band saw lower wheel does not require a guard *
    6·1 answer
  • Which option identifies why Ethan’s skills are valuable to his team in the following scenario?
    8·1 answer
  • It is given that 50 kg/sec of air at 288.2k is iesntropically compressed from 1 to 12 atm. Assuming a calorically perfect gas, d
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!