フィルターのクリア

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.
Andrei Bobrov
Andrei Bobrov 2016 年 1 月 11 日
+1

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTesting Frameworks についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by