commit 04ad036193dc33c2df3d9a39c1b98a04f0b2d4a6
parent b22e5e9807eeb82a2618645530787e9cfdc2c8e8
Author: Nuno Sempere <nuno.sempere@gmail.com>
Date: Fri, 4 Sep 2020 16:08:01 +0200
Changed README x2
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -51,15 +51,19 @@ Matlab doesn't seem to have a return keyword; instead return variables are speci
I.e., what would be
+```
someFunctionName = function(some variables){
do something here
return(results)
}
+```
in any reasonable programming language, is instead in matlab
+```
[result1, result2, ...] = functionName(some variables)
do something here
end
+```
In functions which take a whole file (and which share the name with that file) it isn't necessary to write the end keyword, but I have because it's less confusing.