Azzera filtri
Azzera filtri

transform fprintf in disp

1 visualizzazione (ultimi 30 giorni)
Nuno Duarte
Nuno Duarte il 19 Mag 2020
Commentato: darova il 20 Mag 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 Commento
Ameer Hamza
Ameer Hamza il 19 Mag 2020
Can you further explain what is your intended output?

Accedi per commentare.

Risposte (1)

Tommy
Tommy il 20 Mag 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 Commenti
Nuno Duarte
Nuno Duarte il 20 Mag 2020
thanks tommy
darova
darova il 20 Mag 2020

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by