Effacer les filtres
Effacer les filtres

transform fprintf in disp

1 vue (au cours des 30 derniers jours)
Nuno Duarte
Nuno Duarte le 19 Mai 2020
Commenté : darova le 20 Mai 2020
hey, how do i turn this:
fprintf('\nPara i= %d\n e a= %f e a resposta é: %f ', i, n, c)
into the function disp?
  1 commentaire
Ameer Hamza
Ameer Hamza le 19 Mai 2020
Can you further explain what is your intended output?

Connectez-vous pour commenter.

Réponses (1)

Tommy
Tommy le 20 Mai 2020
Maybe this?
disp(sprintf('\nPara i= %d\n e a= %f e a resposta é: %f ', i, n, c))
You'll get a warning that fprintf is preferred.
  2 commentaires
Nuno Duarte
Nuno Duarte le 20 Mai 2020
thanks tommy
darova
darova le 20 Mai 2020

Connectez-vous pour commenter.

Catégories

En savoir plus sur Gamma Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by