photo

DH


Last seen: plus d'un an il y a Actif depuis 2024

Followers: 0   Following: 0

Statistiques

All
Cody

0 Problèmes
9 Solutions

Discussions

1 Point fort

RANG
N/A
of 301 313

RÉPUTATION
N/A

CONTRIBUTIONS
0 Questions
0 Réponses

ACCEPTATION DE VOS RÉPONSES
0.00%

VOTES REÇUS
0

RANG
 of 21 236

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG
41 941
of 173 955

CONTRIBUTIONS
0 Problèmes
9 Solutions

SCORE
104

NOMBRE DE BADGES
1

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
1 Point fort

NOMBRE MOYEN DE LIKES
1

  • Solver

Afficher les badges

Feeds

Afficher par

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...

plus d'un an il y a | 1