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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |