LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2009, 04:09 PM   #1
rintu_here
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Rep: Reputation: 0
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.
 
Old 11-10-2009, 02:30 PM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
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).
 
Old 11-10-2009, 05:15 PM   #3
rintu_here
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 11-11-2009, 05:32 AM   #4
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Oops, its not citation marks actually but the single ones (whatever they are called).

So it should look like this:

load('datafile')
 
Old 11-11-2009, 11:03 AM   #5
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
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
Then, whenever you wanna use scilab:

Code:
cd my-scilab
/home/yourhomefolder/scilab-5.1.1/bin/scilab
and it will be launched to your scilab folder, where you can put your data files. Then you also won't need to specify the full path to the files; only the name of the file.

You can also add an alias for scilab:

Code:
echo 'alias scilab=/home/yourhomefolder/scilab-5.1.1/bin/scilab' >> ~/.bashrc
and you can simply launch scilab with

Code:
scilab
(you have to relaunch the terminal first.)
 
Old 11-12-2009, 12:20 PM   #6
rintu_here
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 11-13-2009, 04:01 AM   #7
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
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
and remove the line starting with

alias scilab=...

at the bottom.
 
Old 11-13-2009, 12:15 PM   #8
rintu_here
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your suggestion.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
image processing(scilab) sivaprasad84 General 1 09-01-2009 02:40 AM
scilab code sivaprasad84 Debian 1 08-17-2009 07:39 AM
SciLab GUI randomman Linux - General 1 08-28-2008 01:57 AM
problem in Scilab Installation naveen_kr Fedora 2 10-13-2006 02:26 AM
Matlab, Scilab, Octave ... m!k@EL Linux - Software 4 01-01-2005 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration