should i consider this as an error or what?

Linear function:
parameters: [1x1 struct]

10 Commenti

Pleaae clarify your question.
ok fine. the thing is i've typed my entire code where i didn't get any error.but then when i run it, i get this in my command window. so what am i supposed to do? what does that basically mean?
It looks like you might have forgotten a semi-colon somewhere.
if so won't it be shown as an error?
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.
fine. I've checked them. Can there be any other possible reason?
Image Analyst
Image Analyst il 13 Giu 2018
Modificato: Image Analyst il 13 Giu 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.
OCDER
OCDER il 13 Giu 2018
Modificato: OCDER il 13 Giu 2018
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]');
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.
fine. thank you so much. I'll check it out again.

Accedi per commentare.

Risposte (0)

Richiesto:

il 13 Giu 2018

Commentato:

il 14 Giu 2018

Community Treasure Hunt

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

Start Hunting!

Translated by