Caculating the sum of elements and building a vector and a matrix with letters
Mostra commenti meno recenti
I created the following matrix:

Here's the code:
n = input('enter n\n');
A=[sym('m%d', [n 1]) sym('x%d', [n 1]) sym('y%d', [n 1]) sym('z%d', [n 1])];
I need to build the following vector and matrix:

Once with using loops and once without using loops. I don't succeed to create a sum of elements, that are letters. How Can I build those arrays?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Univariate Discrete Distributions in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!