Using verbose produces error

6 次查看(过去 30 天)
arun
arun 2016-8-2
编辑: Stephen23 2016-8-2
Undefined function or variable 'verbose'.
Error in (line 166) if verbose
if verbose
fprintf('Trial %d accuracy = %f\n', trial, accuracy(trial));
end

回答(1 个)

Stephen23
Stephen23 2016-8-2
编辑:Stephen23 2016-8-2
MATLAB does not have any inbuilt function or variable named verbose. Did you read about it in the MATLAB documentation ?
If you want a verbose option, then it is trivial to define it yourself:
verbose = false;
...
if verbose
disp(...)
end

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by