diff --git a/matlab/model_inversion.m b/matlab/model_inversion.m
index bfef2ac5963ecce8b4813eed0fae84ba77d39609..7035411ce5311fc9d12cbec71ced882193cf0db2 100644
--- a/matlab/model_inversion.m
+++ b/matlab/model_inversion.m
@@ -59,7 +59,7 @@ crange = constraints.dates;
 instruments = exogenousvariables(crange);
 freeinnovations = instruments.name(find(all(isnan(instruments))));
 if ~isequal(length(freeinnovations), constraints.vobs)
-    error('model_inversion: The number of instruments must be equal to the number of constrained variables!')
+    error('The number of instruments must be equal to the number of constrained variables!')
 end
 
 % Check if some of the exogenous variables are given.