type of matrix ?

31 vues (au cours des 30 derniers jours)
mohsen tawakoli
mohsen tawakoli le 15 Juil 2019
Commenté : Walter Roberson le 15 Juil 2019
Hi
i want gerally ask how many typ of matrix do we have ?
and specially what is the neanning of " r-by-q matrix " or " s-by-q matrix " ?
  7 commentaires
Adam Danz
Adam Danz le 15 Juil 2019
Matrices only store numeric data. If there are non-numeric or mixed data types, they can be stored in a cell array that can have any number of dimensions.
Here's an example of a 3-by-2 cell array.
c = {'a', 5; 'b', 8; 'c', 0}
c =
3×2 cell array
{'a'} {[5]}
{'b'} {[8]}
{'c'} {[0]}
Walter Roberson
Walter Roberson le 15 Juil 2019
In MATLAB, matrices can have any of the following arithmetic types:
  • uint8, uint16, uint32, uint64 (unsigned integer)
  • int8, int16, int32, int64 (signed integer)
  • single (IEEE 754 Single Precision Binary Floating Point), double (IEEE 754 Double Precision Binary Floating Point)
and also the arithmetic-like types
  • char
  • logical .
There are also the composite types:
  • struct
  • cell
MATLAB also supports objects, and there are a wide variety of object classes. These include:
  • string (array)
  • graphic objects
  • transfer functions and state space models (Control System Toolbox)
  • symbolic expressions (Symbolic Toolbox)
Most MATLAB objects can be made into arrays. Some of the notable ones that cannot be made into arrays are:
  • function handles
  • tables (this one is open to debate about what arrays mean)
  • symbolic functions

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by