How to create a MATLAB struct that looks like a matrix?

1 回表示 (過去 30 日間)
BuMatlab
BuMatlab 2020 年 1 月 7 日
コメント済み: BuMatlab 2020 年 1 月 9 日
Hello -
I would like to create a struct that looks like the attached example (i.e. with rows numbered in sequential order and columns labeled as field names with data at the intersections). Does anyone know how to do this? Everytime I create a struct I get the standard view in the variable window of listing struct field names with size of field as the value.
Any help would be greatly appreciated!
Thanks!
  5 件のコメント
Sindar
Sindar 2020 年 1 月 9 日
Why don't you want a table? They function similarly to structs, with dot-indexing
BuMatlab
BuMatlab 2020 年 1 月 9 日
I did - and it works great. Thank you both!

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

回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by