Buwaneka Dissanayake
Followers: 0 Following: 0
Statistiche
MATLAB Answers
0 Domande
2 Risposte
RANK
3.935
of 289.756
REPUTAZIONE
12
CONTRIBUTI
0 Domande
2 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.00%
VOTI RICEVUTI
5
RANK
of 144.136
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
Risposto
Function to find the next prime number...
% what's wrong with this? it take too long to run & fail function n = next_prime(n) k = n+1; while ~isprime(k) ...
Function to find the next prime number...
% what's wrong with this? it take too long to run & fail function n = next_prime(n) k = n+1; while ~isprime(k) ...
quasi 4 anni fa | 0
Risposto
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
function summa = halfsum(M) [a b] = size(M); if a>1 for n = 1:a; for m = 1:b; if n>m; M(n,m...
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
function summa = halfsum(M) [a b] = size(M); if a>1 for n = 1:a; for m = 1:b; if n>m; M(n,m...
quasi 4 anni fa | 5