for loop, write to text file, append, fprintf, pass input parameters
4 次查看(过去 30 天)
显示 更早的评论
Im looking to pass input parameters (Youngs Modulus) to a text file fprintf(fileID,'<E>%f<E/>\n',E_out);
The text file is running FEBio in terminal where im wanting it to run each of the individual values for E and present me with 3 different set of results.
Am i right in doing something like the following:
E_out = [100000 200000 30000]
for i = 1:length(E)
fprintf(fileID,'<E>%f<E/>\n',E_out(i));
end
And how would i get this to to then pass to my main file containg the FEBio textfile code.
5 个评论
Mohammad Sami
2020-1-30
It's not clear to me what FEBio text file code. Is it something outside Matlab ?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!