photo

Tianyi Yu


Actif depuis 2019

Followers: 0   Following: 0

Statistiques

MATLAB Answers

1 Question
1 Réponse

RANG
158 767
of 300 857

RÉPUTATION
0

CONTRIBUTIONS
1 Question
1 Réponse

ACCEPTATION DE VOS RÉPONSES
100.0%

VOTES REÇUS
0

RANG
 of 21 097

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 171 361

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

Feeds

Afficher par

Question


How to reuse the same format
For example, this code has nine "%7.0f" and one "%5.0f". Is there any way I can simplify this code, like "repmat('%7.0f' , 9)" ,...

environ 6 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
How to reuse the same format
OK i think i solved this problem already: fmt = ['# defaults-> %5.0f',repmat('%7.0f',1,8),'%7.0f\n',]; fprintf(fmt,header);

environ 6 ans il y a | 0

| A accepté