{"id":38361,"date":"2016-05-12T01:05:04","date_gmt":"2016-05-12T06:05:04","guid":{"rendered":"http:\/\/diegodamy.wordpress.com\/?p=353"},"modified":"2016-05-12T02:11:39","modified_gmt":"2016-05-12T07:11:39","slug":"wsq14-scilab-13","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/05\/wsq14-scilab-13\/","title":{"rendered":"WSQ14: SciLab"},"content":{"rendered":"<p>#Tc1017 #SciLab<\/p>\n<p>SciLab is a numerical computation software which is quite handy and also easier to understand than C++ in my opinion, its graphic options are very useful as well, and the handling of matices is definitely more intuitive than in C++.<\/p>\n<p><strong>Understanding SciLab:<\/strong><\/p>\n<ol>\n<li>On the console screen, we can use the arrows to change instructions and find the history of used commands, kinda like how we use the arrow keys in the compiler.<\/li>\n<li>When using the console we have to input first &#8211;&gt; before any command<\/li>\n<li>Basic operations and inserting comments remain the same as in C++.<\/li>\n<li>We can use %e, %pi and %i to represent euler&#8217;s constant, pie and complex numbers.<\/li>\n<li>The semicolon is used to avoid any result from beign displayed, no compiling error will occur here.<\/li>\n<li>More useful than the console screen is the editor, which is basically a word processor in which coding becomes easier.<\/li>\n<\/ol>\n<p><strong>Plotting in SciLab:<\/strong><\/p>\n<ol>\n<li>Command: plot.<\/li>\n<li>clf menas clear plot, while scf opens another window.<\/li>\n<li>Colors can be added to curves: letter enclosed by &#8220;&#8221; &#8211;&gt; &#8220;b&#8221; makes blue<\/li>\n<li>Point styles work the same<\/li>\n<li>Segments go in square brackets, point go in round ones.<\/li>\n<li>Statistics: useful for creating bar graphs<\/li>\n<li>Use bar command &#8211;&gt; bar (x,n,color)<\/li>\n<\/ol>\n<p><strong>Creating functions:<\/strong><\/p>\n<ol>\n<li>Begin: function<\/li>\n<li>End: endfunction<\/li>\n<li>Variables must always have a value, but we don\u00b4t have to declare them in advanced&#x1f600;<\/li>\n<li>Function&#8217;s parameters work the same as in C++<\/li>\n<li>Logical operators remain the same, only != becomes &lt;&gt;<\/li>\n<\/ol>\n<p><strong>Matrices and vectors:<\/strong><\/p>\n<ol>\n<li>Al operations are done with matrices.<\/li>\n<li>A space or coma separates columns.<\/li>\n<li>Semicolons separate rows.<\/li>\n<\/ol>\n<p><strong>Loops:<\/strong><\/p>\n<ol>\n<li>Beggining:step: value &#8211;&gt; this way is much simpler than C++<\/li>\n<li>For and while finish with an end.<\/li>\n<\/ol>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/diegodamy.wordpress.com\/353\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/05\/307055aacdb568d50dde09f045f0c148.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/05\/f9862f5b0913503e8c0c9632cfb2e30c.jpg#038;blog=105336245&#038;%23038;post=353&#038;%23038;subd=diegodamy&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#Tc1017 #SciLab SciLab is a numerical computation software which is quite handy and also easier to understand than C++ in my opinion, its graphic options are very useful as well, and the handling of matices is definitely more intuitive than in C++. Understanding SciLab: On the console screen, we can use the arrows to change &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/05\/wsq14-scilab-13\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ14: SciLab<\/span><\/a><\/p>\n","protected":false},"author":20,"featured_media":38369,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[32,259],"class_list":["post-38361","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-tc1017","tag-scilab"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/38361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=38361"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/38361\/revisions"}],"predecessor-version":[{"id":38372,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/38361\/revisions\/38372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/38369"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=38361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=38361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=38361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}