Is there a code to take values from the fprintf ?

1 次查看(过去 30 天)
fprintf('% 5d %8.3i %8.3i\n',i,strain,stress)
is there a code that can extract the last column of my fprint? the stresses?
thank you very much in advance

采纳的回答

Star Strider
Star Strider 2020-11-9
Since you are printing to the Command Window and not a file, likely not.
However ‘stress’ is obviously in your workspace, so there is no need for you to extract it. Just use the value you have.
  4 个评论
James Tursa
James Tursa 2020-11-10
@Star: I was actually responding to a comment made by OP, which has since been deleted for some reason.
Star Strider
Star Strider 2020-11-10
Interesting. I never saw it, so I didn’t delete it.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Stress and Strain 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by