suppressing command window output from function calls

1 回表示 (過去 30 日間)
Mike Wilson
Mike Wilson 2015 年 2 月 12 日
コメント済み: Mike Wilson 2015 年 2 月 12 日
I have a function that calculates local time from input UTC time. The call to the function looks like this.
[dateStr, sampleLSTHr, sampleLSTMin] = UTCtoLST(dateStr, sampleTimeZone);
This function gets called many (1000s) of times as we process satellite swath data. Despite the semi-colon, with each call it triggers output to the command window.
How do I suppress that output?
Thank you.

採用された回答

Image Analyst
Image Analyst 2015 年 2 月 12 日
There is a line of code inside that function that is missing a semicolon. Or else you are using fprintf() after the call to that function. Use the debugger to step into the function and proceed line by line until you find the line of code that is printing to the command window.
  1 件のコメント
Mike Wilson
Mike Wilson 2015 年 2 月 12 日
You nailed it. Missing semicolon in the function.
Thanks!
Mike

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReference Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by