matrix, cell array, and table

17 vues (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 19 Juin 2020
Commenté : alpedhuez le 19 Juin 2020
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?

Réponse acceptée

KSSV
KSSV le 19 Juin 2020
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 commentaires
KSSV
KSSV le 19 Juin 2020
YEs..thats fine.....but the arrays can have either numbers or strings also.
alpedhuez
alpedhuez le 19 Juin 2020
then what is the diffference numbers as an array and numbers as a matrix?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by