Assign values to symbolic matrix
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Joy Mondal
il 30 Lug 2019
Modificato: madhan ravi
il 30 Lug 2019
As=sym('As',[1,5])
As =[ As1, As2, As3, As4, As5]
now I want to enter numerical quantities to the each elements of matix in As in a loop
As1=[1;2;3]
As2=[4;5;6]
......
0 Commenti
Risposta accettata
madhan ravi
il 30 Lug 2019
Modificato: madhan ravi
il 30 Lug 2019
What you're trying to do is a bad idea ( https://in.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval )
As = cell(n,1);
for k = 1:n
As{k} = ... your code
end
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!