Aramis
Followers: 0 Following: 0
Statistiche
0 Domande
5 Risposte
RANK
233.051
of 290.080
REPUTAZIONE
0
CONTRIBUTI
0 Domande
5 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
2
RANK
of 144.501
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
next prime number using While loops
THE BEST ANSWER function k = next_prime(n) k=n; while isprime(k)==false || k==n k = k+1; end end ...
3 mesi fa | 0
Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it. example, the input is [1 2 3; 4 5 6; 7 8 9],the ans is 26
THE BEST ANSWER , Simple&Fast function summa = halfsum(A) summa = 0; sz = size(A); for row = 1:sz(1) fo...
3 mesi fa | 0
Write a function called valid_date that takes three positive integer scalar inputs year, month, day. If these three represent a valid date, return a logical true, otherwise false. The name of the output argument is valid.
The best answer function valid = valid_date(year,month,day) if not(isscalar(year))|| not(isscalar(month)) || not(isscalar(...
3 mesi fa | 1
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
This is the BEST FCKN ANSWER function admit = eligible(v, q) admit = mean([v q]) >= 92 && min([v q]) > 88; end
3 mesi fa | 1
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 [x, y] = minimax(M) x = (max(M,[],2) - min(M,[],2))'; y = max(M,[], "all")- min(M,[], "all"); end
3 mesi fa | 0