Array of U1 V1 U2 V2 U3 V3

10 vues (au cours des 30 derniers jours)
Frank Oosterveld
Frank Oosterveld le 20 Nov 2018
Hi, as the title says, I need a symbolic array of U1 V1 U2 V2 U3 V3 .. Etc.
Number_of_elements = 100
UV = zeros(2*Number_of_elements,2)
for i = 1:Number_of_elements+1
U = sym('U',[i 1]);
V = sym('V',[i 1]);
UV(i,:) = [U(i), V(i)]
end
UV = UV(:)
I tried this, but then the following error occurs: Unable to convert expression into double array.
Does anyone see a good way to fix this?

Réponse acceptée

madhan ravi
madhan ravi le 20 Nov 2018

Plus de réponses (0)

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