Using table in MATLAB 2012

조회 수: 2 (최근 30일)
Sam Lee
Sam Lee 2016년 4월 6일
편집: Walter Roberson 2016년 4월 6일
I have five different vectors of the same size, but different data types. I want to put them in the form of a table. I tried using table() but it did not work on MATLAB 2012. How can I do that?
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 4월 6일
편집: Walter Roberson 2016년 4월 6일
Is this table for the purposes of display to the command window, or is it for processing some how?

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

답변 (1개)

jgg
jgg 2016년 4월 6일
편집: jgg 2016년 4월 6일
Matlab 2012 doesn't support the table function; it was implemented in R2013b.
If you want to use that function, you will need to upgrade your version of Matlab.
You could try using a struct instead, but that won't have the same associated structure or functions.
  댓글 수: 2
Sam Lee
Sam Lee 2016년 4월 6일
The problem is that it is an assignment and my lecturer said she only had MATLAB 2012.
jgg
jgg 2016년 4월 6일
편집: jgg 2016년 4월 6일
Then you need to choose another data structure to do what you want to do here. As I suggested, you can try using a struct or you could use a cell instead. You'll have to try them out to see if they suit what you were trying to use table for.
You should accept this answer since it addresses your question; if you have a follow up about how to implement something like a table using another data structure, a follow-up question would be a good idea to post. However, you should make it clear what you are trying to do with your table in that question, since you might not need to duplicate all the functionality.
Alternatively, if your lecturer is with an educational institution with the appropriate license, she can just download new versions of the software for free. The academic license is perpetual, so she can use any version of Matlab.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by