Docsity

Solutions for MATLAB tasks, Exercises of Matlab skills

Toggle sidebar
bg1
Logical Arrays Practice
Write a function called freezingthat takes a vector of numbers that correspond to daily low
temperatures in Fahrenheit. Return numfreeze, the number of days with sub freezing
temperatures (that is, lower than 32 F) without using loops. Here is an example run:

Partial preview of the text

Download Solutions for MATLAB tasks and more Exercises Matlab skills in PDF only on Docsity!

Logical Arrays Practice Write a function called freezing that takes a vector of numbers that correspond to daily low temperatures in Fahrenheit. Return numfreeze , the number of days with sub freezing temperatures (that is, lower than 32 F) without using loops. Here is an example run: