Scilab in Fedora 11
I have downloaded zipped scilab file. Now I can operate scilab by ./bin/scilab command. It shows
Gtk-Message: Failed to load module "gnomebreakpad": /home/owner/scilab-5.1.1/lib/thirdparty/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/bug-buddy/libbreakpad.so.0) I have no idea what it says. So couldn't do anything. Please let me know if anyone knows how to resolve this! Now I wanted to load a datafile (200x9 matrix) to plot the data. I have seen from internet that load(datafile) should load the data. But it does not. It says " Undefined variable: datafile ". Could anyone please help me how to load a datafile in scilab. I just need to load a datafile (200 row, 9 column matrix) and plot from that. |
I have no idea about your first issue, the second is probably as simple as putting citation marks around the datafile. (If you don't scilab will interpret it as a variable.)
So it will look something like this: load("datafile") where datafile is the name of the file (you might wanna use the full path). |
Thanks for your reply. I tried to load (gave full path of the datafile) in that way. It says
!--error 246 Function not defined for given argument type(s),check arguments or define function %_load for overloading. I want to let you know how I'm working with scilab as of now. I downloaded scilab-5.1.1.bin.linux-i686.tar.gz file. Then unzipped that. It creates a new folder in my home directory scilab-5.1.1. Then I go that directory and type ./bin/scilab which opens my scilab window. I can't work in scilab (with the same command) from any other directory. I tried to copy my datafile in the scilab directory but it say "Permission denied". Now as I wanted to load my datafile (200 row, 9 column matrix) with the command you said with proper path, it gives me error. I'm not sure whether I have to install anything else or whether scilab can load any kind of matrix! Really, it might be a simple problem but bugs me a lot. |
Oops, its not citation marks actually but the single ones (whatever they are called).
So it should look like this: load('datafile') |
Also, let me suggest a slightly more convenient way to use scilab:
First make a new directory in your home folder: Code:
mkdir my-scilab Code:
cd my-scilab You can also add an alias for scilab: Code:
echo 'alias scilab=/home/yourhomefolder/scilab-5.1.1/bin/scilab' >> ~/.bashrc Code:
scilab |
Hi,
Thanks for your reply. Still I couldn't load my file with load('datafile'). It was showing the same error 246. May be something to with this big(not so big really!!) datafile. Then I found a command " aa = read('datafile',-1,9); " which could load my datafile. If I give 2 instead of 9 then it loads 2 columns. It solved my problem. Thanks for the alias information. BTW, do you know why this comes when I try to edit my figure " WARNING: Due to your configuration limitations, Scilab switched in a mode where mixing ui controls and graphics is not available. Type "help usecanvas" for more information. " Thanks |
Okay, yes, sometimes you should use the read command instead of the load command. Depends on the file you want to import.
About the difference: http://turing.une.edu.au/~amth142/Pr..._03/practical/ The only idea I have about solving your other problem (with the graphics) is to install it the "standard" way instead, as described here for ubuntu: http://ubuntuforums.org/showthread.php?t=619888 Don't forget to remove your alias if you do that though. Simply Code:
gedit ~/.bashrc alias scilab=... at the bottom. |
Thanks for your suggestion.
|
All times are GMT -5. The time now is 08:41 PM. |