Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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


Following Example 6.1, compute and the FOUllCl wullu derived in Example plot In this example, To TT and wo 2. The expressions for ao, an, bn, Cn, and en are 1:10; a n (1) 0.504 a n (n-1) 0.504.2. (1-16 n 12) b n (1) 0; b n (n-1) 0.50T-8 n. (1+16 n. A2) c n (1) a n (I) c n (n-1) sart (a n 1) A2+b n (nt 1), n2) i the n (1) T 0; theta n (n-1) atanz (-b n (n-1), a n (n-1) i xlabel ('n') clf subplot (2,2,1) (n label a n stem a n k xlabel ('n' n, T) ylasef ('b n'); subplot (2,2, 2) stem (n subplot (2, 2, 3) stem (c n, 'k') ylabel xlabe n subplot (2, 2, 4) stem (n, theta n, k i ylabel lthet a xlabel ('n [rad]

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.