photo

DH


Last seen: circa 2 anni fa |  Attivo dal 2024

Followers: 0   Following: 0

Statistica

All
Cody

0 Problemi
9 Soluzioni

Discussions

1 Punto principale

RANK
N/A
of 302.248

REPUTAZIONE
N/A

CONTRIBUTI
0 Domande
0 Risposte

ACCETTAZIONE DELLE RISPOSTE
0.00%

VOTI RICEVUTI
0

RANK
 of 21.641

REPUTAZIONE
N/A

VALUTAZIONE MEDIA
0.00

CONTRIBUTI
0 File

DOWNLOAD
0

ALL TIME DOWNLOAD
0

RANK
43.679
of 180.571

CONTRIBUTI
0 Problemi
9 Soluzioni

PUNTEGGIO
104

NUMERO DI BADGE
1

CONTRIBUTI
0 Post

CONTRIBUTI
0 Pubblico Canali

VALUTAZIONE MEDIA

CONTRIBUTI
1 Punto principale

NUMERO MEDIO DI LIKE
1

  • Solver

Visualizza badge

Feeds

Visto da

Discussion


Can someone tell me what's wrong with this code? This is a problem from Cody. For example, when n=3, the output should be the matrix [1 2 2 3 3 3]
function ans = your_fcn_name(n) n; j=sum(1:n); a=zeros(1,j); for i=1:n a(1,((sum(1:(i-1))+1)):(sum(1:(i-1))+i))=i.*ones...

circa 2 anni fa | 1