Borrar filtros
Borrar filtros

Is there a code to take values from the fprintf ?

1 visualización (últimos 30 días)
stavros boutsikos
stavros boutsikos el 9 de Nov. de 2020
Comentada: Star Strider el 10 de Nov. de 2020
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

Respuesta aceptada

Star Strider
Star Strider el 9 de Nov. de 2020
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 comentarios
James Tursa
James Tursa el 10 de Nov. de 2020
@Star: I was actually responding to a comment made by OP, which has since been deleted for some reason.
Star Strider
Star Strider el 10 de Nov. de 2020
Interesting. I never saw it, so I didn’t delete it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Stress and Strain en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by