AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Functions in scilab3/20/2023 If we want to assign the number of rows and columns to variables no_rows and no_cols we can use this command: -> = size(var_matrix) If applied to a matrix the number of rows and columns is returned. If you want to check, or use in other calculations, the size of a variable, the size() function does the job: ->size(var_matrix) Var_string="This is a string!", var_boolean=%T, In order to define at the Scilab console multiple variables at once, we separate their definition with ",". As explained in the previous articles, we’ll create variables of type: real, complex, matrix, string, Boolean and polynomial. In order to start using the above functions let’s define some variables to work with. For example: when speaking about measuring the size of a matrix we use the Scilab function size(). Example: ->clcĪ good practice is to use round brackets at the end of the function just to make a difference between the function itself and a common word. If the function doesn’t have arguments, like some the general purpose ones, we can call the function as:Įither way the result is the same. There are three different ways to call a function. Verifies if a variable exists or not in the workspace List the name, type, size and bytes (memory) of all the variables defined in Scilab List the names of all the variables defined in Scilab These functions are basic and they can be used whatever the scope of the work (numerical analysis, graphics, GUIs, etc.)įirst we’ll make a table in which we’ll list all the general purpose functions and after we’ll take each of them and describe it in detail: Function In this article we will learn how to use the general purpose Scilab functions.
0 Comments
Read More
Leave a Reply. |