没有搞懂这个错在哪里了,该怎么修改
程序是github上找的
close all
clearvars
clc
myDir = uigetdir; % sets the data directory 设置数据目录
myFiles = dir(fullfile(myDir,'*.csv')); % gets all csv files in struct 获取struct中的所有csv文件
[~,index] = sortrows([myFiles.datenum].'); % sort files in ascending order 按升序对文件进行排序
myFiles = myFiles(index);
clear index
c = length(myFiles); % number of .csv files (each represents one time step)
r = 4848; % number of rows in one .csv file, read from .csv file
%% extract the vector components of velocity and vorticity
% x-component
Ux = zeros(r,c);
for k = 1:c
Ux(:,k) = readtable(myFiles(k).name).U_0;
end
% y-component<