a cell of double heading

조회 수: 1 (최근 30일)
Guido Pastore
Guido Pastore 2019년 3월 16일
댓글: Star Strider 2019년 3월 16일
Is it possible to add initial lines to a cell as if they were headings?
For example: given a cell of double 5x3 is it possible to add a line where the fields are strings?

채택된 답변

Star Strider
Star Strider 2019년 3월 16일
Yes. Use Tables (link).
  댓글 수: 6
Guido Pastore
Guido Pastore 2019년 3월 16일
Sorry, I have another question.
I have, for example, 4 cell. How can I create a struct with all these cell??
Star Strider
Star Strider 2019년 3월 16일
I am not certain that I understand what you want.
If you want to assign the table to a structure element, try this:
S.T1 = T;
See the documetation on Structures (link) for details.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by