Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Appending entire Rows in a struct

1 回表示 (過去 30 日間)
Saar Peles
Saar Peles 2020 年 4 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I am trying to append an row (of variable size) of a an array inside of a struct. The first line would convert the numerical array into a string array.
The rows in the array vary from 1 to 7 and I want them to display side by side like this so that they can easily be transfered to an excel spreadsheet where all the values would be in one cell
A.k = [1, 2, 3];
A.k = string(A.k);
[1, 2 , 3] -> [ '1, 2, 3']
Biggest issue is knowing how many columns there are and in the case that there's only 1 column that it still works.
  6 件のコメント
Geoff Hayes
Geoff Hayes 2020 年 4 月 15 日
You may need to provide a more complex example.
Walter Roberson
Walter Roberson 2020 年 4 月 15 日
Maybe you have a non-scalar struct??
I do not seem to be catching what you are asking...

回答 (0 件)

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by