scripts and functions
Title
Question
In same video at 8.31 a statement given about semicolon ...what is the meaning for the statement(Inside a function file,you can check for yourself the effect of putting a semicolon...)
Scilab Scripts-and-Functions 08-09 min 40-50 sec
Answers:
It means that you should, as and when you have time, write scripts with lines with and without a semicolon to see the difference it makes.
If you put a semicolon at the end of the statement, the output of that line will not be displayed in the scilab console window.
If you want the output in scilab console after running the file (program), then you have to enter the variable to know the output of that variable.
If you put a semicolon at the end of the statement,the output of that line will not be displayedin the scilab console window.
i have executed the above underlined statement in my system but output displayed along with that line....
Login to add comment
may be sometimes if you have single output, and the file has single line it will display.
For example, here the output will be displayed as 12. May be the version of scilab also matters.
clc
clc
a = 3;
b= 4;
c = 5;
d = a+b+c;
disp(d)
Login to add comment