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
Two fluids, A and B exchange heat in a counter – current heat exchanger. Fluid A enters at 4200C and has a mass flow rate of 1 k
Volgvan

Answer:

Your question has some missing information below is the missing information

Given that ( specific heat of fluid A = 1 kJ/kg K and specific heat of fluid B = 4 kJ/kg k )

answer : 300 kW , 95°c

Explanation:

Given data:

Fluid A ;

Temperature of Fluid ( Th1 )  = 420° C

mass flow rate (mh)  = 1 kg/s

Fluid B :

Temperature ( Tc1) = 20° C

mass flow rate ( mc ) = 1 kg/s

effectiveness of heat exchanger = 75% = 0.75

<u>Determine the heat transfer rate and  exit temperature of fluid</u> <u>B</u>

Cph = 1000 J/kgk

Cpc = 4000 J/Kgk

Given that the exit temperatures of both fluids are not given we will apply the NTU will be used to determine the heat transfer rate and exit temperature of fluid B

exit temp of fluid  B = 95°C

heat transfer = 300 kW

attached below is a the detailed solution

5 0
3 years ago
What three actions consume traction? Why is it wise to never exceed traction capability?
nirvana33 [79]
Acceleration breaking and steering
7 0
3 years ago
Read 2 more answers
How many broadcast or vlan is in this switchs and router ? and why? ​
Mnenie [13.5K]

Answer:The move from hubs (shared networks) to switched networks was a big improvement. Control over collisions, increased throughput, and the additional features offered by switches all provide ample incentive to upgrade infrastructure. But Layer 2 switched topologies are not without their difficulties. Extensive flat topologies can create congested broadcast domains and can involve compromises with security, redundancy, and load balancing. These issues can be mitigated through the use of virtual local area networks, or VLANs. This chapter provides the structure and operation of VLANs as standardized in IEEE 802.1Q. This discussion will include trunking methods used for interconnecting devices on VLANs.

Problem: Big Broadcast Domains

With any single shared media LAN segment, transmissions propagate through the entire segment. As traffic activity increases, more collisions occur and transmitting nodes must back off and wait before attempting the transmission again. While the collision is cleared, other nodes must also wait, further increasing congestion on the LAN segment.

The left side of Figure 4-1 depicts a small network in which PC 2 and PC 4 attempt transmissions at the same time. The frames propagate away from the computers, eventually colliding with each other somewhere in between the two nodes as shown on the right. The increased voltage and power then propagate away from the scene of the collision. Note that the collision does not continue past the switches on either end. These are the boundaries of the collision domain. This is one of the primary reasons for switches replacing hubs. Hubs (and access points) simply do not scale well as network traffic increases.

7 0
3 years ago
this part of the proposal begins with a capsule statement and than proceeds to introduce the subject to a stranger
sesenic [268]

Answer:

Introduction (including Statement of Problem, Purpose of Research, and Significance of Research): The introduction of a proposal begins with a capsule statement and then proceeds to introduce the subject to a stranger. ... This section is the heart of the proposal and is the primary concern of the technical reviewers.

4 0
2 years ago
An archer releases an arrow toward a target. The arrow travels 166 meters in 2 seconds. The speed of the arrow is
gavmur [86]

Explanation:

speed= distance/time

=166/2

=83m/s

6 0
2 years ago
Other questions:
  • There are 20 forging presses in the forge shop of a small company. The shop produces batches of forgings requiring a setup time
    10·1 answer
  • 5. Assume that you and your best friend ench have $1000 to invest. You invest your money
    8·1 answer
  • A transmission line with an imperfect dielectric is connected to an ideal time-invariant voltage generator. The other end of the
    9·1 answer
  • Which of the following statements about glycogen metabolism is FALSE?
    12·1 answer
  • In a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their
    8·1 answer
  • An automated transfer line is to be designed. Based on previous experience, the average downtime per occurrence = 5.0 min, and t
    11·1 answer
  • Ronny wants to calculate the mechanical advantage. He needs to determine the length of the effort arm and the length of the load
    7·1 answer
  • Find the mean deviation of the set of numbers<br> (a) 12, 6, 7, 3, 15, 10, 18,5
    7·2 answers
  • In which type of shoot is continuous lighting used?
    9·1 answer
  • Where loads are likely to be on continuously, the calculated load for branch circuits and feeders must be figured at (100%) (125
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!