Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表 gTruth.LabelData 和一个名为 X 的列。我想遍历表 X 列的元素,并将其写入 csv 文件。怎么做?
X 列的每个单元格中的变量都是double类似的类型[3 15 26 38;62 9 19 4]。
double
[3 15 26 38;62 9 19 4]
L = size(X,2) % number of column for i=1:L valX = X(:,i) xlswrite('MyFile.xlsx',valX) end