related to the fprintf
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
SCRW;NAME;SCRW_1
SCRW;NAME;SCRW_2
SCRW;NAME;SCRW_3
SCRW;NAME;SCRW_4
i need a text file exactly this way so how can i write the code with. it should execute automatically with the number of shoes
0 commentaires
Réponses (1)
Walter Roberson
le 5 Juil 2022
number_of_shoes = 4;
for shoe_number = 1 : number_of_shoes
filename = sprintf('SCRW;NAME;SCRW_%d', shoe_number)
end
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!