assigning a value using variables in a matrix
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello! Is it possible to input any values using different variables in a matrix?
For example,
Load=[a1 b1 c1 d1 e1 f1 g1 h1 i1 j1 k1 l1 m1 n1 o1];
I would like to enter a value on each variable. Is it possible? Thanks
3 commentaires
Rik
le 26 Oct 2021
Why do you want to do it like that? Why not define the entire matrix without using intermediate variables?
Réponses (1)
Abhishek Kolla
le 1 Nov 2021
We can define variables seperately and then use them whenever required. The following code snippet can be referred which is similar to the formula you are referring to
a = 10;
b = [5 10 20];
c = [10 20 30];
d = [b c];
s = d/a;
0 commentaires
Voir également
Catégories
En savoir plus sur Matrices and Arrays 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!