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 Center および File ExchangePartial Differential Equation Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by