J'ai un problème avec la ligne "P_dot_ij_om_ + ii (i, 1) = P_dot_ij (k, 2);" j'ai fondamentalement déclaré la matrice P_dot_ij_om_1 = [] de 1 à 0 et à la ligne suivante.comment accéder aux variables déclarées sous forme de chaîne dans scilab
Je voudrais entrer des données, par ex. P_dot_ij_om_ + ii (i, 1) = P_dot_ij (k, 2); où ii est un nombre. Quelle est la bonne expression?
rows=round(k/360);
i=1;
ii=1;
k=1;
while ii <= rows
Pdot_names(ii,1)=string("P_dot_ij_om_"+ string(ii));
disp(Pdot_names(ii))
execstr(Pdot_names(ii)+'=[]'); // declare indexed matrix
while i<361
P_dot_ij_om_+ii(i,1)=P_dot_ij(k,2);
// P_dot_ij_om_+ii(i,2)=P_dot_ij(k,3);
disp(k)
k=k+1;
i=i+1;
end
ii=ii+1;
end
Bienvenue dans Stackoverflow! Si vous avez la bonne réponse à votre question, n'oubliez pas de 'Accepter'. – Attila