Matlab矩阵:获取每行中值的标题字符串的单元格数组

时间:2018-06-06 11:08:25

标签: excel excel-vba vba

我从这样的Excel文件中获取原始矩阵:

enter image description here

使用此代码:

% Read Excel File
filename = 'Name_of_Excel_File.xlsx';

% Set Sheet and Size
% If you want to try, use the correct sheet number
Sheet = 3; 
Impact = 'A1:H7';

% Read and save to matrix
[~,~,Impact] = xlsread(filename,Sheet,Impact);

我得到了这个原始影响矩阵:

enter image description here

现在是棘手的部分,我不知道如何开始解决问题的过程。

我想为每一行获得一个单独的字符串单元格数组。 例如

One = 'A'    'C'    'D'    'F'

Two = 'B'    'G'

等等。

我想为每一行获取一个字符串数组。字符串应该是其列中数字的标题中的字符串。

我对这个问题有哪些可能性?

0 个答案:

没有答案