should i consider this as an error or what?
Afficher commentaires plus anciens
Linear function:
parameters: [1x1 struct]
10 commentaires
Stephan
le 13 Juin 2018
Pleaae clarify your question.
new user 00
le 13 Juin 2018
Stephen23
le 13 Juin 2018
It looks like you might have forgotten a semi-colon somewhere.
new user 00
le 13 Juin 2018
Image Analyst
le 13 Juin 2018
No. Semicolons are optional, not required. Leaving them off will echo the result of the computation to the command window but will not throw an error.
new user 00
le 13 Juin 2018
Image Analyst
le 13 Juin 2018
Modifié(e) : Image Analyst
le 13 Juin 2018
Use the debugger to step through your code one-line-at-a-time. What line of code got executed just before that message was displayed in the command window? Again, the message is just information, not an error.
If there's no missing semicolon, any chance there's something like disp or fprintf in any of the codes? For example:
fprintf('Linear function: parameters: [1x1 struct]\n');
disp('Linear function: parameters: [1x1 struct]');
Also, what color is that message? If red, it could be a custom error message like:
error('Linear function: parameters: [1x1 struct]');
Walter Roberson
le 13 Juin 2018
It looks to me as if that is the output of the function. When you called the function, you probably did not put semi-colon at the end of the call so the result of the function was automatically displayed.
new user 00
le 14 Juin 2018
Réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!