suppressing command window output from function calls
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Reference Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!