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

조회 수: 6 (최근 30일)
Ganesh budi
Ganesh budi 2018년 6월 12일
댓글: Ganesh budi 2018년 6월 13일
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
Jan
Jan 2018년 6월 12일
편집: Jan 2018년 6월 12일
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.

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2018년 6월 12일
편집: Jan 2018년 6월 12일
num_nod=input('num_nod = ')
for e = 1:2*num_nod
force(e,1) = input(sprintf('applied forces at node %d: ', e));
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Partial Differential Equation Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by