I do a little change to my code and it works
tic
t = readtable('data_Mat1_2022_02_11_23_31.csv');
ax = uiaxes;
Error using uiaxes (line 47)
This functionality is not available on remote platforms.
This functionality is not available on remote platforms.
x = t.Time;
y = t.Data;
toc
tic
%plot(t.Time, t.Data)
h = plot(ax, x(1), y(1));
set(h, 'YDataSource', 'y');
set(h, 'XDataSource', 'x')
n = height(t);
set(h, 'XData', x, 'YData', y);
toc
Output
Elapsed time is 0.208487 seconds.
Elapsed time is 0.006211 seconds.
Maybe the bottleneck is the time of reading table