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

 Réponse acceptée

madhan ravi
madhan ravi le 21 Août 2019
Modifié(e) : madhan ravi le 21 Août 2019

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Entering Commands dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by