Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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;
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.