LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-26-2005, 11:25 AM   #1
munichtexan
Member
 
Registered: Oct 2005
Posts: 74

Rep: Reputation: 15
Beginner on Scilab, matlab script conversion


Hello,
I am working with a set of programs that have Matlab scripts for evaluation and visualization of data generated by the simuations. I am not an expert on Matlab or Scilab, but decided to use Scilab for financial and other reasons. I have been reviewing the Scilab manuals, looking at the differences between Matlab and Scilab programming and scripts.

There is already a conversion setup of three programs mfile2sci --> macr2tree --> tree2code to convert Matlab scripts.

A few questions: (I downloaded and installed Scilab using YAST for Suse 10.0 for 64 bit)

1) It does not see the alldems.dem file or library associated with it. It is looking in SCI/bin/alldems.dem but the file and library is in a different path. Do I set up the path in $PATH in order for the program to see it?

2) It also does not do on-line help. It may be the same path problem.
a) What is the correct syntax inside the program to call help from the command line?

3) exec is used for functions, but does not work with the mfile2sci, what is the proper way to run these conversion programs ? Also, the scripts call for 2 data files where the information actually comes for the visuallization in x and y. But I have not been able to find the documentation associated with a) do I need to load the data first or b) how to stay with the same (x,y) connotation.

I hope my questions make sense and would appreciate your input.

Best Regards,
MunichTexan
 
Old 11-27-2005, 07:35 AM   #2
edeCh
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
scilab path and the rest

hello there!

concerning 1and 2:
i had similar problems with the suse-default version of scilab too ;
i switched to the binary linux version provided by INRIA under:

http://www.scilab.org/download/index...e=release.html

this one had no problems with path and help; so probably this an
option for you as well

concerning 3:
there is a VERY good manual entry for matlab to scilab conversion;
i myself did not have to do one up to do such a conversion up to now;
if you have problems putting the manual entry to your problem,
please post again; i would also give it a try;


so good luck!

cu

ede
 
Old 11-27-2005, 02:24 PM   #3
munichtexan
Member
 
Registered: Oct 2005
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks for the input on 1 and 2. I will look into it further.

Can you tell me the correct syntax to use on calling help? Just want to be sure I am not doing something stupid. Thanks.

Yes I would be interested in what you are doing manually. :-)

Best regards,

MunichTexan

HP Pavilion zv6000 with 3800+ AMD Athlon 64 bit and 1 GByte of DDR ram.
Suse 10.0
 
Old 11-28-2005, 02:47 AM   #4
edeCh
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
hello again!

help is under >>help command<< so here it is >>help mfile2sci<<; the entry really looks very useful to me;by the way there are also manuals for download on the scilab homepage under

http://www.scilab.org/contrib/index_...tegory=MANUALS

hope that helps;

cu
 
Old 11-28-2005, 08:55 AM   #5
munichtexan
Member
 
Registered: Oct 2005
Posts: 74

Original Poster
Rep: Reputation: 15
Thanks. It looks like I need to define the environment variable SCI. Help and other functions are not seen. I think this is probably the fundamental problem from using the rpm and Yast to do the setup.

EDIT: I set the environment variable SCI by "env SCI='pathname of location of docs, etc'" and that took care of the help and demo problem.

Best regards,
MunichTexan

Last edited by munichtexan; 11-28-2005 at 01:21 PM.
 
Old 11-29-2005, 03:17 AM   #6
edeCh
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
so this one is solved ; very well; congratulations; and i even was reminded that there is the SCI variable in scilab what i hat kind of forgotten
 
Old 12-08-2005, 06:42 PM   #7
munichtexan
Member
 
Registered: Oct 2005
Posts: 74

Original Poster
Rep: Reputation: 15
mfile2sci worked, but ????

I had looked at the manual which had given me the wrong syntax for mfile2ci

The correct format being mfile2sci('mypath/myfile.m')

Now my question is in regards to correct syntax for macr2tree and tree2code.

But more importantly I would like to understand what these conversion files are doing --

I compared the original Matlab *.m files to the converted Scilab *.sci files and it would appear that I should be able to run the .sci files. But I have not figured out the command sequence necessary to run a .sci file.

Could some one explain what the macr2tree and tree2code are supposed to do and what the correct syntax for using them is???? I have been through the manuals, demos, help and online help and have not been able to get a good description of what they really do, or for that matter how I run the .sci scripts after I have them inside of Scilab. Or maybe I am too stupid to understand the explanations! :-)

To view the output from the TEMPEST simulation, MATLAB and the
plotam.m script can be used.
>> plotam(‘LineSpace.y.0.e.y.i’,’LineSpace.y.0.e.y.q’);

What would be the equivalent syntax to use the plotam.sci script?
Thanks,
MunichTexan

Last edited by munichtexan; 12-14-2005 at 12:16 PM.
 
  


Reply



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
plotting points in scilab kevinlyfellow Linux - Software 3 03-12-2006 06:05 PM
Developing an application with scilab vrdhananjay Linux - Software 3 12-15-2005 05:26 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM
Matlab, Scilab, Octave ... m!k@EL Linux - Software 4 01-01-2005 06:34 PM
Matlab safrout Programming 3 04-13-2002 03:36 PM

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

All times are GMT -5. The time now is 03:36 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