Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does a blue circle on the "Run" button in Matlab mean?

Tags:

matlab

Title pretty much says it all. I am running R2015a, and got this to appear in my editor. There is a small blue circle appearing on the "Run" button. I've never seen this before, and can't find any documentation on the mathworks website that explains it's meaning.

What does this blue circle with 3 dots mean?

enter image description here

like image 594
John Avatar asked Feb 08 '16 19:02

John


1 Answers

When your .m file contains a function, not just a script, MATLAB lets you configure the "run" options. The normal thing would be to thrown an error because "Not enough input arguments", as you are trying to run a function without giving any.

However, if you click in the small arrow below "run", you can type some default arguments to pass to the function, when the function is run by clicking the green play. That way, it won't throw an error. The blue dots mean that someone has written some default argument and MATLAB is telling you it will run the function with them.

Example:

function res= add(in1,in2)

res=in1+in2

end

Default parameters and ans:

enter image description here

If you try to run this code without having added the default parameters it will give an error.

like image 142
Ander Biguri Avatar answered Oct 17 '22 11:10

Ander Biguri