please i would like these matlab codes to be changed to scilab so that i can get
ID: 1717936 • Letter: P
Question
please i would like these matlab codes to be changed to scilab so that i can get the diagrams.
and
Explanation / Answer
You can use scilab to convert matlab files to scilab.
First take code and paste it in notepad++ and save it as a file with ".m" as extension.
Now you have the matlab file.
Now open scilab and type the following command,
where,
M-file-path - a character string which gives the path of Matlab M-file to convert
result-path - a character string which gives the directory where the result has to be written. Default value is current directory.
Recmode - Boolean flag, used by translatepaths function for recursive conversion. Must be %F to convert a single mfile. Default value : %f
only-double - Boolean flag, if %T mfile2sci considers that numerical function have been used only with numerical data (no Scilab overloading function is needed). Default value: %T
verbose-mode - display information mode
0 - no information displayed
1 - information written as comment is resulting SCI-file
2 - information written as comment is resulting SCI-file and in logfile
3 - information written as comment is resulting SCI-file, in logfile and displayed in Scilab window
prettyprintoutput - Boolean flag, if %T generated code is beautified. Default value: %F
Use above code by giving values to appropriate parameters and default value to unknown parameters.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.