suppressing command window output from function calls

조회 수: 4 (최근 30일)
Mike Wilson
Mike Wilson 2015년 2월 12일
댓글: Stephen23 2025년 2월 6일 11:20
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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by