Random values in timetable
5 views (last 30 days)
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!