我正在使用MATLAB,我想从.txt文件中读取字符串,然后想要将该字符串拆分为偶数段和奇数段(基于字符的位置).
例如,"你好",那么结果应该是:
Segment 1 = "hlo" & segment 2 = "el"
string matlab
matlab ×1
string ×1