Hi Samuel,
"But then, even if such a global default value exists, assigned to and
reachable from what, since ~ can't be a variable name?
Think we need some x-matlaber to confirm which case.
Right, but case #2 looks quite improbable."
--> i keep mixing up with built-in functions for this
This is only speculation: Could the tilde be used in some cases where
some arguments that are not the last ones are optional, and the function
definition includes some way to check if the corresponding argument has
or has nor been provided?
I've noticed in some cases Scilab allows just to
Hello,
Or when you have to write a function following a specific prototype (
graphic events, optim, ode, ...)
If I would write a function that call another, I have to specify a
prototype to allow user to call my function.
But in some case, the final user does not need all parameters so he
Le 26/11/2019 à 16:15, Chin Luh Tan a écrit :
2. Tilde used to tell the function to use default value, then
replacing it with % unused might cause error.
But then, even if such a global default value exists, assigned to and
reachable from what, since ~ can't be a variable name?
Think we
Hi Samuel,
In fact I've not been using matlab for more than 10 years, so I try to
understand this as well.
The input tilde is still abit confusing for me as well, I am trying to
understand its' usage as this page:
https://octave.org/doc/v4.4.1/Ignoring-Arguments.html
function val =
Le 26/11/2019 à 03:43, Chin Luh Tan a écrit :
Hi,
from the first glance on the documentation you show:
"Beside this function, you can also use sparse() primitive to build a
block diagonal sparse matrix."
it sound to me that this statement said the sparse could be used to
create block
Hello Chin Luh,
Thanks a lot for your input.
Both cases -- input and output will have to be converted --, since the
converter is also made to convert (sets of) functions definitions, not
only scripts.
About the input case: Steven's answer is still not really clear to me.
Doing some tests