matrix, cell array, and table

조회 수: 8 (최근 30일)
alpedhuez
alpedhuez 2020년 6월 19일
댓글: alpedhuez 2020년 6월 19일
I try to understand the basics.
  1. Can 'matrix' have non-numerical data?
  2. What is the difference of a matrix of numbers and a cell array of numbers?
  3. Is it correct to say that a table is a generalization of a matrix that can include non-numerical data?

채택된 답변

KSSV
KSSV 2020년 6월 19일
Can 'matrix' have non-numerical data?
No matrix cannot have a non-numerical data. Eleemnts are accessed by matrix(i,j)
What is the difference of a matrix of numbers and a cell array of numbers?
A cell array can have non-numerical data, arrays of different sizes, matrices of different sizes. They will be accessed by {}.
Is it correct to say that a table is a generalization of a matrix that can include non-numerical data?
It need not be.
  댓글 수: 5
KSSV
KSSV 2020년 6월 19일
YEs..thats fine.....but the arrays can have either numbers or strings also.
alpedhuez
alpedhuez 2020년 6월 19일
then what is the diffference numbers as an array and numbers as a matrix?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by