Hi,
Is there a way to only fprintf data while using an if statement. For example, if x = 1, fprintf ('hello');
Thanks

 Respuesta aceptada

madhan ravi
madhan ravi el 21 de Ag. de 2019
Editada: madhan ravi el 21 de Ag. de 2019

0 votos

if x == 1 % where x is assumed as a scalar
fprintf('hello')
end
help if
doc if

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 21 de Ag. de 2019

Comentada:

el 21 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by