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

Ameer Hamza
Ameer Hamza 2020년 5월 19일
Can you further explain what is your intended output?

댓글을 달려면 로그인하십시오.

답변 (1개)

Tommy
Tommy 2020년 5월 20일

0 개 추천

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

Nuno Duarte
Nuno Duarte 2020년 5월 20일
thanks tommy
darova
darova 2020년 5월 20일

댓글을 달려면 로그인하십시오.

태그

질문:

2020년 5월 19일

댓글:

2020년 5월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by