Aramis
Followers: 0 Following: 0
Statistics
0 Questions
5 Answers
RANK
233,051
of 290,094
REPUTATION
0
CONTRIBUTIONS
0 Questions
5 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
2
RANK
of 19,645
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 144,543
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
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 months ago | 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 months ago | 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 months ago | 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 months ago | 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 months ago | 0