How can I open Scilab in my Windows console? I have it installed and I see it when I search in the search bar but I don't know how to run it inside my console. I would like to use it inside my integrated Visual Studio Code terminal.
I just took a look on Youtube for Scilab, and it has it's own completely stand-alone GUI console. You cannot run a GUI console in VScode, only terminal-like consoles, so, if it does have a cmd.exe -like, bash-like console, then the above approach applies.
The first way is to use Scilab interactively, by typing commands in the console, analyzing the results and continuing this process until the final result is computed. This document is designed so that the Scilab examples which are printed here can be copied into the console. The goal is that the reader can experiment with Scilab behavior by himself. This is indeed a good way of understanding the behavior of the program and, most of the time, it is a quick and smooth way of performing the desired computation.
The docking system uses Flexdock [12], an open-source project providing a Swing docking framework. Assume that we have both the console and the editor opened in our environment, as presented in figure 8. It might be annoying to manage two windows, because one may hide the other, so that we constantly have to move them around in order to actually see what happens.
The Flexdock system allows us to drag and drop the editor into the console, so that we finally have only one window, with several sub-windows. All Scilab windows are dockable, including the console, the editor, the variable browser, the command history, the help and the plotting windows. In figure 9, we present a situation where we have docked four windows into the console window.
We can double click on a variable, which opens the variable editor, as presented in the figure 12. We can then interactively change the value of a variable by changing its content in a cell. On the other hand, if we change the variable content within the console, we must refresh the content of the dialog box by pushing the refresh button in the toolbar of the Variable Editor.
Another way of using Scilab is from the command line. Several command line options are available and are presented in figure 14. Whatever the operating system is, binaries are located in the directory scilab-5.3.1/bin. Command line options must be appended to the binary for the specific platform, as described below. The -nw option disables the display of the console. The -nwni option launches the nongraphics mode: in this mode, the console is not displayed and plotting functions are disabled (using them will generate an error).
On Windows, we can use the setdefaultlanguage function, which takes a string representing the required language as input argument. Then we restart Scilab so that the menus of the console are translated. In the following example, we use the setdefaultlanguage function in order to configure the language in Portuguese.
Exercise 2.2 (Using exec) When we develop a Scilab script, we often use the exec function in combination with the ls function, which displays the list of files and directories in the current directory. We can also use the pwd, which displays the current directory. The SCI variable contains the name of the directory of the current Scilab installation. We use it very often to execute the scripts which are provided in Scilab. Type the following statements in the console and see what happens.
Actually, I have a big matrix in the console of Scilab. It is very tedious to type this matrix in the TeXt file of latex. My aim is to write latex code for this matrix automatically in the text file. Can anybody help me?[ I have the big matrix like this A=[0.2 0.3 0.3; 0.4 0.5 0.6; 0.7 0.8 0.9] in the console]. (big in the sense that row runs about 30 and column runs about 6).
Recently I have installed ubuntu 18.04 on my laptop and I have downloaded all the necessary packages which included scilab version 6.0.1, but I am unable to open neither the scilab console nor scilab advance. Only my scilab CLI seems to open when I click it. Can someone help me out please as I am new to this Ubuntu
In my first post I said scilab does not start. I was wrong. The problem is that scilab takes 10 seconds to start after a xterm shows up. Because of this I thought that all the text flowing in the xterm were error/log messages. Looking the scilab.desktop I found the following exec command:
OK. I understand your point of view. I even did write a bug report to bugzilla.scilab.org, but before sending it I decided to try the tarball from the Scilab site (scilab-6.0.1.bin.linux-x86_64.tar.gz).
It is now installed in /usr/share/ and is working fine with no messages (the xterm is always blank). So I think the problem may be the Leap 15.0 packaging and not a scilab bug.
The earlier Scilab versions did not use the xterm or at least did not show it up. When I installed 6.0.1 from yast2 this xterm was flooded with messages and I could not set my preferences, my default directory (it always defaults to my home directory) or access ATOMS by clicking on the respective icons.
My university requires me to use this software called Scilab. It uses Java. The last time, there was some GTK-look-and-feel problem. I was able to fix that. Then after working fine for months, one day I discover that (again) all fonts disappeared. Only console text is seen, but all text from menus etc vanished. In scilab settings, I was able to somehow (half-blindly) change the font, but nothing works.
Sorry but I can't know how to fix your font problems from your description. However, one suggestion for your old thread is that, you can install a aur package manager like yay (manually from aur), and use yay -S scilab, it will install all dependencies from aur automatically. I think that a package from aur may function better.
By the way, if you can run scilab from a terminal, you may see the feedback from scilab, which probably contain errors and warnings. Examine and post them, or search for them on the web. You will get more answer.
Who told you this and why? First try the AUR scilab-bin version, since it's the binary version 6.1.0 from upstream with some patches and it has recent comments/suggestion in the Comments section that seem to suggest it should work. You'll need one additional AUR dependency (ncurses5-compat-libs), but other than that there's little or no deps.
Calling the shared library directly from scilab is the most straightforward to configure and get working, and requires no other scilab modules, but the only two functions that can be called are the high-level functions PropsSI and HAPropsSI
Scilab is an open source software for numerical computations. Its strengths are its built-in matrix data handling capability, rich set of matrix operators and functions, interactive console to quickly get started, built-in programming language, data visualization through 2D and 3D graphs and a rich set of toolboxes for variuos applications.
Once you have done a few calculations in the Scilab console, you are now ready to explore the invisible environment of Scilab, its Workspace. Learning to explore and manipulate the Workspace is necessary as it gives you an insight into how Scilab works on the inside.
In this session you will learn the following:
Comments in Scilab console or Scilab script files are initiated with two forwards slashes. Comments last up to the end of the line where they begin. Therefore, if you see a comment in the commands described below, they need not be typed. They are only to explain the purpose of the command, or what to expect from the output. While you need not type them, reading and understanding them is very helpful in learning.
Here is an example:
While programming in Scilab, during program design phase, we need to print result in the Scilab console mainly for debug purposes. For this objective we can use the Scilab built-in disp function, which is easy to understand and quite flexible.
I am a beginner in scilab. I was trying to write certain functions, when accidentally i closed the variable browser. Now I have to manually open it from applications as a separate window which earlier was already embedded below my file browser. Any help on how to reverse it?
at line 265 of function atomsDESCRIPTIONget ( /usr/share/scilab/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci line 284 )
at line 16 of function atomsSystemUpdate ( /usr/share/scilab/modules/atoms/macros/atomsSystemUpdate.sci line 33 )