필터 지우기
필터 지우기

Why does my matlab function produce result more than I expect?

조회 수: 1 (최근 30일)
Ben Le
Ben Le 2016년 1월 10일
편집: Stephen23 2016년 1월 11일
Please see the attached pdf file for the issue. Thanks!

채택된 답변

Andrei Bobrov
Andrei Bobrov 2016년 1월 10일

추가 답변 (1개)

Stephen23
Stephen23 2016년 1월 10일
편집: Stephen23 2016년 1월 11일
Your function Testing has two outputs, and when you call the function the first output is displayed by default, unless you suffix the line with a semicolon. So instead of calling this:
Testing
you need to call this:
Testing;
Note that a function output is a totally different thing to the text that you are fprintf-ing in the command window: do not get confused between these.
  댓글 수: 3
Stephen23
Stephen23 2016년 1월 10일
My pleasure. You can also vote for my answer if it helped you.

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

카테고리

Help CenterFile Exchange에서 Testing Frameworks에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by