필터 지우기
필터 지우기

transform fprintf in disp

조회 수: 1 (최근 30일)
Nuno Duarte
Nuno Duarte 2020년 5월 19일
댓글: darova 2020년 5월 20일
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일
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일

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

카테고리

Help CenterFile Exchange에서 Gamma Functions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by