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 Kommentar

Ameer Hamza
Ameer Hamza am 19 Mai 2020
Can you further explain what is your intended output?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Tommy
Tommy am 20 Mai 2020

0 Stimmen

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 Kommentare

Nuno Duarte
Nuno Duarte am 20 Mai 2020
thanks tommy
darova
darova am 20 Mai 2020

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 19 Mai 2020

Kommentiert:

am 20 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by