How to generate automatically multiple symbolic values??
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Triveni
am 1 Feb. 2016
Bearbeitet: Stephen23
am 1 Feb. 2016
i want to generate for 30 values. because i have to store it to array.
a(1) = [a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15 a16 a17 a18 a19 a20];
strictly i need a1 a2 a3...i don't need a(1), a(2).... i want it to generate randomly. if i enter length = 5 then generate only
[a1, a2 ,a3,a4,a5]
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 1 Feb. 2016
a = sym('a', [1 30])
I am not sure what your mention of randomness is? If you want to scramble the order of these then you could use
a = a(randperm(numel(a)));
2 Kommentare
Walter Roberson
am 1 Feb. 2016
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!