![]() Ordinary differential Equation solver and differential Algebraic Equations. Linear, quadratic and non linear optimization,.Being a high level programming language, it provides access to a verity of features like advanced data structures and 2-D an 3-D graphical functions. SCILAB provides a powerful computation environment along with a rich collection of numerical algorithms to quench the needs of both the engineering and scientific community. Scilab is released as open source under the CeCILL license (GPL compatible), which means that it is free of cost. Now we shall see an all new mathematical modelling tool, the SCILAB I would like to acknowledge my seatmate Josh Abuel in simplifying some of my conditionals for a more easy-to-read code.In our previous posts we had explained how to use and perform complex calculations and signal processing using MATLAB. All in all, we’ve learned that SciLab is a high-level numerical programming language full of different utilities for many different applications in academic and scientific endeavors. This is only to show one possibility that masking can be of use. (The syntax is in MATLAB).Īxis square, colorbar Z(4,0) polynomial – Primary Spherical Aberration I used it to simulate the zernike polynomials. I have been using masking techniques ever since June as part of my research. Again, a boolean operator is used to add an “or” condition. The operation is to ensure that the multiplication is element-wise.Įl = sqrt(X.^2/xwidth.^2 Y.^2/ywidth.^2) Īny type of pattern can be created so long as you use a geometric formula.Īnd the last patter to be created is a cross. Then a circular aperture is used to limit the values computed by the gaussian by doing matrix multiplication indicated by the ”. Basically, a gaussian function is first computed for all values of X and Y in the ndgrid. The Gaussian pattern is an example of matrix multiplication. Imshow(Product) A Gaussian pattern enclosed in a circle You can even make concentric circles by adding more conditions to the boolean. This is another example of the use of a boolean. The difference of this sinusoidal pattern with the one earlier is that this used the find command in order to set a value for the condition applied in this case the sin function. Below is the code to generate a Circle aperture with varying sizes. I adjusted the code a little bit by using the SIVP toolkit because the colormap command does not show 1 as white and 0 as black. The first part of the activity is to create a white circle using the code provided by Ma’am Jing. This can be used to simulate apertures or you need a specific image. Masking, as I understood, is a technique in order to create images from basic geometric conditions. Luckily, the syntax of SciLab is sort of based on MATLAB so any MATLAB user may find the commands quite similar. This may include a lot of searching through google to check for the right command and other capabilities. When one wants to learn a new language, it is best to put it into practice! This applies to any programming language you wish to learn. I then found out about SciLab through AP 185 and have been using it as an alternative to MATLAB ever since. First, there was octave which I used for 3 months in a linux machine but the pc broke down. ![]() It also has a community that shares their programs for others to use.Ī few months back, I was trying to find an open source alternative to MATLAB. ![]() The rich option would be MATLAB but this is the very reason why Scilab is beautiful… It is free and offers an array of tools for signal processing, dynamics, image processing, etc. SciLab is the answer to numerical problems that needs a little bit more “umph”. ![]()
0 Comments
Leave a Reply. |