How do I expand fields of a structure?

8 ビュー (過去 30 日間)
Adriano
Adriano 2016 年 2 月 25 日
回答済み: Stephen23 2016 年 2 月 25 日
Hello everyone, I have a 1x21 structure with 9 fields. Each fields is a "nx2 double" or "nx1 double". Opening the structure, if n<=5 I can read the numbers of each fields, but for 6x2 double or greater I have to do a click on the field to read numbers. How can i read all veriables without open the field?
  2 件のコメント
Stephen23
Stephen23 2016 年 2 月 25 日
Why do you want to do this? How do you want MATLAB to display a 1000000x2 matrix?
Adriano
Adriano 2016 年 2 月 25 日
編集済み: Adriano 2016 年 2 月 25 日
I have max 20x2 matrix, but I need to export it into excel coping and pasting each column of the structure. If I do it now, I copy the numbers for 3x2, 4x2 or 5x2 matrix and the sentence "7x2 double", "8x2 double"...for the others.

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

採用された回答

Stephen23
Stephen23 2016 年 2 月 25 日
Here are some possibilities:
  • display the numeric matrix in the command window, and copy it from there.
  • write your data to an excel file.
  • write your own display routine.

その他の回答 (0 件)

カテゴリ

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