matlab matrix multiple with letter variable

1 vue (au cours des 30 derniers jours)
chen tianle
chen tianle le 12 Août 2021
Modifié(e) : Awais Saeed le 12 Août 2021
is there anyway to mutliple matrix with any unknown number ?

Réponses (1)

Awais Saeed
Awais Saeed le 12 Août 2021
Modifié(e) : Awais Saeed le 12 Août 2021
I think storing numeric and character data together is only possible with cell arrays. However, it would be good for storing them only as doing any calculation with mixed data type matrix would cause errors.
A = [1 0 0 0; 0 0 1 0; -3 3 -2 -1; 2 -2 1 1];
syms x
B= [0 0 x 6];
B.*A

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by