我在将数据导出到Excel文件时遇到一些问题。例如
这是结果,问题是,右边的空白处。假设有0.947227532个,但它怎么是空的。我有一个模糊的猜测,那是因为它连续具有相同的序列值。请告诉我该怎么做。
0.690745994 18.05949033 1.192653957 0.396440197
-0.044258514 3.46265691 0.947227532
0.679917786 12.28067074 1.322402497 0.396440197
0.639375225 16.35981089
0.254060838
0.637346185 16.30103417 1.034478957 0.241511727
0.317693262 0.947227532 1.000000167 2.23117E-06
0.669425212 14.80575942 1.007101536 0.094840169
0.635785401 15.01130502 1.021861337 0.194297042
0.640530449 16.36085872 1.039032143 0.254278537
rhoV3;
xlswrite('MING.xls', rhoV3, 'MING', 'M17')
rhoV4;
xlswrite('MING.xls', rhoV4, 'MING', 'Q17')
PV;
xlswrite('MING.xls', PV, 'MING', 'AA17')
WP2;
xlswrite('MING.xls', WP2, 'MING', 'S17')
Cd2;
xlswrite('MING.xls', Cd2, 'MING', 'T17')这些
发布于 2012-08-22 22:42:44
更改代码,以便可以在屏幕上看到正在编写的数组的值:
rhoV3
xlswrite('MING.xls', rhoV3, 'MING', 'M17')
rhoV4
xlswrite('MING.xls', rhoV4, 'MING', 'Q17')
PV
xlswrite('MING.xls', PV, 'MING', 'AA17')
WP2
xlswrite('MING.xls', WP2, 'MING', 'S17')
Cd2
xlswrite('MING.xls', Cd2, 'MING', 'T17')我敢打赌,xlswrite运行得很好,问题是rhoV4中的元素比您想象的要少。所以修复rhoV4就完成了。
如果我错了,带着测试的结果回来,修改你的问题,我们都可以试着找出答案。
https://stackoverflow.com/questions/12069223
复制相似问题