![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/27156477_1660721485805_DEF.jpg)
Arah Cristal
Followers: 0 Following: 0
Feeds
답변 있음
Write a function called eligible that helps the admission officer of the Graduate School decide whether the applicant is eligible for admission based on GRE scores. The function takes two positive scalars called v and q as in
function admit=eligible(v,q); avg = (v+q)/2; if (avg>=92 && v>88 && q>88); admit = true else admit = false end
Write a function called eligible that helps the admission officer of the Graduate School decide whether the applicant is eligible for admission based on GRE scores. The function takes two positive scalars called v and q as in
function admit=eligible(v,q); avg = (v+q)/2; if (avg>=92 && v>88 && q>88); admit = true else admit = false end
거의 2년 전 | 0
답변 있음
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
function [mmr,mmm] = minimax (m) mmr = abs(max(m.')-min(m.')) mmm = (max(m,[],'all')-min(m,[],'all'))
Write a function called minimax that takes M, a matrix input argument and returns mmr, a row vector containing the absolute values of the difference between the maximum and minimum valued elements in each row. As a second output argument called mmm,
function [mmr,mmm] = minimax (m) mmr = abs(max(m.')-min(m.')) mmm = (max(m,[],'all')-min(m,[],'all'))
거의 2년 전 | 0