mohammad elyoussef
Followers: 0 Following: 0
Feeds
已回答
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function c = under_age(a,b) if nargin < 2 b = 21; end if b > a c = true; else c = false; end
Write a function called under_age that takes two positive integer scalar arguments: age that represents someone's age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function c = under_age(a,b) if nargin < 2 b = 21; end if b > a c = true; else c = false; end
4 years 前 | 0
已回答
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 b = freezing(a) f = a < 32; b = sum(f);
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 b = freezing(a) f = a < 32; b = sum(f);
4 years 前 | 0