Question

Q2. One school is evaluating the running (100m) speed of grade 9 students. The speeds are recorded in a vector T. The speed is categorized as “normal” if the time is less than 17s and more than 13s; The speed is categorized as “fast” if the speed is less than or equal to 13s; The speed is categorized as “slow” if the speed is more than or equal to 17s. Code to create a string vector D to record the speed results corresponding to the values in vector T. For example, T = [15, 14, 18, 12.5, ...], then D= [“normal”, “normal”, “slow”, “fast”…]

I need help to solve this in MATLAB programming...please

Answer #1

In the below program i have used cell string to fulfill this requirement.

I have also verified its output and it is giving expected result.

We can add as many variable in the vector as required as it is already dynamic in nature.

T = [15, 14, 18, 12.5]

D1={'slow','fast','normal'}

D = []

for a = T

if a >= 17

D(length(D)+1)=1

elseif a <= 13

D(length(D)+1)=2

else

D(length(D)+1)=3

end

result = char(D1(D))

disp(result)

end

###########################################

op-

normal normal slow fast

1. The reading speed of second grade students is approximately
normal with a mean of 90 words per minute (wpm) and a standard
deviation of 10 wpm. A. What is the probability a randomly selected
student will read more than 95 words per minute? B: What is the
probability that a random sample of 12 second grade students
results in a mean reading rate of more than 95 words per minute? c:
What is the probability that a random sample...

Which one of the following psychologists is most likely to agree
with the idea that there are "multiple intelligences" that are
independent and distinct?
A) Charles Spearman
B) Claude Steele
C) Howard Gardner
D) Sue Savage-Rumbaugh
Kyle is studying how language abilities change throughout
childhood, and Kelly is studying cognitive changes in late
adulthood. Both Kyle and Kelly are conducting studies in which area
of psychology?
A) clinical psychology
B) humanistic psychology
C) epigenetics
D) developmental psychology
REM sleep is...

Please answer the following Case
analysis questions
1-How is New Balance performing compared to its primary rivals?
How will the acquisition of Reebok by Adidas impact the structure
of the athletic shoe industry? Is this likely to be favorable or
unfavorable for New Balance?
2- What issues does New Balance management need to address?
3-What recommendations would you make to New Balance Management?
What does New Balance need to do to continue to be successful?
Should management continue to invest...

Gender Bias in the Executive Suite
Worldwide
The Grant Thornton International Business Report (IBR) has
described itself as "a quarterly survey of business leaders from
across the globe … surveying 11,500 businesses in 40 economies
across the globe on an annual basis." 1 According to the 2011 IBR,
the Asia Pacific region had a higher percentage (27 percent) of
female chief executive officers (CEOs) than Europe and North
America. Japan is the only Asia Pacific region exception.
The report further...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 3 minutes ago

asked 18 minutes ago

asked 19 minutes ago

asked 21 minutes ago

asked 45 minutes ago

asked 49 minutes ago

asked 56 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago