how can i get in place of %d is i values for each iteration of e

6 vues (au cours des 30 derniers jours)
Ganesh budi
Ganesh budi le 12 Juin 2018
Commenté : Ganesh budi le 13 Juin 2018
num_nod=input('num_nod = ')
for e=1:2*num_nod
force(e,1)=input('applied forces at node %d:',e);
end
[MOVED from tags] while running i am running this code i getting this error "error using input the second argument to input must be 's'." plz help me
  1 commentaire
Jan
Jan le 12 Juin 2018
Modifié(e) : Jan le 12 Juin 2018
Today I've formatted the code for you: Select the code with the mouse and press the "{} Code" button.
Use the tags to provide some keywords to classify the question.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 12 Juin 2018
Modifié(e) : Jan le 12 Juin 2018
num_nod=input('num_nod = ')
for e = 1:2*num_nod
force(e,1) = input(sprintf('applied forces at node %d: ', e));
end

Plus de réponses (0)

Catégories

En savoir plus sur Partial Differential Equation Toolbox 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