Random values in timetable
1 次查看（过去 30 天）
Hello, first of all I'm quite a Matlab newbie.
My goal is to fill a time table with random values.
Currently, the current value of the loop keeps overwriting the previous value. However, I would like to have all values in one timetable.
for i = 1:5
Time = datetime('now');
Conductivity = rand(1,1);
data = timetable(Time,Conductivity);
Thanks in advance for your help!