Is assign a title to rows or columns possible?

조회 수: 1 (최근 30일)
Fabio
Fabio 2014년 5월 29일
댓글: Udit Gupta 2014년 5월 29일
Hi
I would like to make an intuitive matrix of values, how I could make this?
Is assign a title to rows or columns possible?
thank you
  댓글 수: 1
dpb
dpb 2014년 5월 29일
Only if you create a cell array to hold the disparate values. Then you'll have created the issue of having to address the data independently of the header to use same. All in all, except for display i/o, it's not a good idea.

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

채택된 답변

Udit Gupta
Udit Gupta 2014년 5월 29일
In the newer versions of matlab (I think 2013b and beyond) there is a type of data type called table. This allows you to use naming of rows and columns.
If you are using an older version of matlab, there is a data type called dataset which does the same thing, but you should have access to Statistics Toolbox.
  댓글 수: 3
dpb
dpb 2014년 5월 29일
Good point w/ the dataset; my release predates it and I've been hesitant to update owing to the machine here being dated and by current standards, limited...R2012b is now at least bearable for these kinds of things as in the forum that added memory to the machine's capacity but still no speed-demon.
Udit Gupta
Udit Gupta 2014년 5월 29일
I know what you mean. I have an old license for 2012a at home. Though at work I can access the latest version with most of the toolboxes, so it's not a hardship.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by