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 日

0 投票

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 件のコメント

alpedhuez
alpedhuez 2020 年 6 月 19 日
"It need not be."
Would you elaborate or provide a reference?
KSSV
KSSV 2020 年 6 月 19 日
The data in ecel sheet can be read into a table. If you have a matrix....matrix can be converted into table by naming each column. If you have different arrays where each array represent different parameters for one specific object this can be converted to table. Read in table MATLAB. lot of examples are given.
alpedhuez
alpedhuez 2020 年 6 月 19 日
table=(array or matrix)+names?
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 件)

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

製品

リリース

R2020a

タグ

質問済み:

2020 年 6 月 19 日

コメント済み:

2020 年 6 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by