Rajeev Mehndiratta
Followers: 0 Following: 0
Feeds
已回答
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 ex
function numfreeze = freezing(V) A=0 V V(V<32) = A A =logical(V) B=sum(A) numfreeze=B end
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 ex
function numfreeze = freezing(V) A=0 V V(V<32) = A A =logical(V) B=sum(A) numfreeze=B end
4 years 前 | 0