i have loop and i need to Create a table for each loop

2 vues (au cours des 30 derniers jours)
Muhannad Saleh
Muhannad Saleh le 15 Fév 2021
Commenté : Muhannad Saleh le 15 Fév 2021
i have loop and i need to Create a table for each loop all the table have number to know what the table

Réponse acceptée

Stephen23
Stephen23 le 15 Fév 2021
Modifié(e) : Stephen23 le 15 Fév 2021
Use indexing rather than numbering the variables:
N = the number of tables that you want
C = cell(1,N);
for k = 1:N
C{k} = table(..);
end
Probably you should just use one table, and add a column with an appropriate distinguishing variable.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements 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!

Translated by