フィルターのクリア

Error using xlswrite (line 165) Dimension of input array cannot be higher than two.

4 ビュー (過去 30 日間)
Pero Pajo
Pero Pajo 2018 年 7 月 20 日
再開済み: Guillaume 2018 年 7 月 20 日
I load resvol.mat in Matlab. When I try to write V3f to excel xlswrite('u.xlsx',V3f); I get this error - Error using xlswrite (line 165) Dimension of input array cannot be higher than two. Could somebody please help?

回答 (2 件)

Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2018 年 7 月 20 日
I had a similar problem recently, I think (without knowing what your variables are) is that xlswrite can only handle matrices and cells with specific formats, so if you have a struct or a table it will not work. Check the data that you are saving to pinpoint the problem.

Guillaume
Guillaume 2018 年 7 月 20 日
The error is clear, xlswrite cannot write 3D arrays (such as your V3f array) since excel spreadsheet are 2D.
What would you expect xlswrite to do with a 3D arrays, what would it do with the 18 pages of your matrix?
  2 件のコメント
Pero Pajo
Pero Pajo 2018 年 7 月 20 日
Thank you for your answer. Is there another way to do this?
Guillaume
Guillaume 2018 年 7 月 20 日
To do what?
Again, how do you want 3D data written in a 2D spreadsheet? That's not a matlab problem, it's a conceptual problem. Once you've decided how to write 3D data in excel, it's probably trivial to implement in matlab.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by