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

2 Ansichten (letzte 30 Tage)
Muhannad Saleh
Muhannad Saleh am 15 Feb. 2021
Kommentiert: Muhannad Saleh am 15 Feb. 2021
i have loop and i need to Create a table for each loop all the table have number to know what the table

Akzeptierte Antwort

Stephen23
Stephen23 am 15 Feb. 2021
Bearbeitet: Stephen23 am 15 Feb. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by