From 0332fb1032a5f3870d85fb5a17e0b7a9f56cb4c0 Mon Sep 17 00:00:00 2001 From: denispelli Date: Wed, 24 Jun 2020 00:15:37 -0400 Subject: [PATCH] reword error messages --- lib/UncertainEOverN.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/UncertainEOverN.m b/lib/UncertainEOverN.m index 882c8f8..f52e1d7 100644 --- a/lib/UncertainEOverN.m +++ b/lib/UncertainEOverN.m @@ -26,8 +26,8 @@ % %% 'orthogonalLetter' % Provides orthonormal signals to the letter code to confirm that it -% performs identically with the Gabor code. Currently the threshold -% contrast thresholds agree to within 0.01 log unit. +% performs identically with the Gabor code. Currently the contrast +% thresholds agree to within 0.01 log unit. % % INPUT ARGUMENTS: % "MM" is an array of one or more degrees of uncertainty M, each a positive @@ -170,13 +170,14 @@ o.noiseSD=0.5; o.N=o.noiseSD^2; if ~ismember({psych.targetFont},{'Sloan'}) - error(... + warning(... ['UncertainEOverN: Currently, when psych.targetKind=''letter'', '... - 'psych.targetFont must be ''Sloan'', not ''%s''.'],... + 'psych.targetFont must be ''Sloan'', not ''%s''. Setting that threshold to NaN.'],... psych.targetFont); EOverN=nan; return end + % These values assume the Sloan font. o.targetHeightOverWidth=1; o.targetFontHeightOverNominal=1; o.targetFont=psych.targetFont;