For this portion of the ICA you will be creating scripts in SciLab. You will need to turn in the files you create to Moodle for credit.
• Write a SciLab script named ICA6_Prob_01.sce, that will calculate the following:
• Use the colon operator to create a one-dimensional matrix called A, and the linspace() function to create a one-dimensional matrix called B.
• Have the user input the starting value for the one-dimensional matrix.
• Have the user input the last value for the one-dimensional matrix.
• Have the user input the increments for the one-dimensional matrix.
• Output the one-dimensional matrix A
• Output the one-dimensional matrix B
• Are the matrices the same? Use a Relational Operator to compare the two matrices.
• Write a SciLab script named ICA6_Prob_02.sce, that will calculate the following:
• Download the file “ENGR112 ICA_06_Thermocouple Data.csv” from Moodle
• Use the following to get a data file:
• filename = uigetfile(‘*.*’,’all files’) //Opens a file browser to look for a file
• data = csvRead(filename) //Appends the csv data into an array assigned to the variable data
• Extract each column from data and make them equal to T1, T2, & T3
• This data represents temperature readings in a reactor in units of Fahrenheit:
• Make a 3 x 3 matrix with the following as the different rows:
• The maximum temperature measured by each thermocouple.
• The average temperature measured by each thermocouple.
• The minimum temperature measured by each thermocouple.
• Write a SciLab script named ICA6_Prob_03.sce, that will calculate the following:
• Take in any size one-dimensional matrix and return the following information:
• Have the user input the one-dimensional matrix of any size.
• Output the sum of the values in the one-dimensional matrix.
• Output the smallest number in the one-dimensional matrix and its location.
• Output the largest number in the one-dimensional matrix and its location.
• Output the average value of the one-dimensional matrix.
• Output the length of the one-dimensional matrix.
• Output the transposed version of the one-dimensional matrix.
• Write a SciLab script named ICA6_Prob_04.sce, that will calculate the following:
• The volume of a circular cylinder is, . Find the volume of cylindrical containers with radii from 0 to 12 m and heights from 10 to 20 m. Increment the radius dimension by 3 m and the height by 2 m as you span the two ranges. Use the meshgrid() function for your calculations. Your answer should be a two-dimensional matrix.