The MATLAB Code for the sum of series is as follows:
The output of the script is as follows:
##OUTPUT:
>> sumofseries
>> ynew
ynew =
7.0947e+03
Therefore sum of series is 7094.7
Please comment for any doubts. Like if you find the answer helpful. Thank you.
solve the following problems using mathlab, step by step Provide the script file to determine the...
mathlab
8. (6 points) Choose the correct answer. (0 After executing the following script file in MATLAB X = (2:4; -1:1 ; 1 2 3]; y=x(2,:); size(y') the displayed result is a. 2 2 b. 31 c. 21 d. 1 3 e. none of above (11) After executing the following script file in MATLAB X = -1; y = x*sqrt(-1); х+ у the displayed result is a. error message b. d. 1-11 e. none of above (iii) The volume of...
Develop a MATLAB script (M-File) to plot the function: y(x)-2l0g(10x) for the range of 0 sxs 10.
mathlab
Q2. Write a script file that accepts the user input of array of any size then uses nested for loops to find the minimum and maximum elements in the array. See slides 43,44 & 45 for hints Use the following 2 arrays to test your script: A- A 10 10 -4 17 2 5 0 13 -7 9 AND لیا M -1 5 -7 4 7 17 6 9 10 Sample Outputs: For the given array, the min. value...
For the circuit shown below, find HEVA 1 c = OH() - acolo OH() = City OH OH) = HCL 1) ENGR2304 Final 1.16 points, The US EPA has tested the average fuel efficiency of 24 late model cars. The results obtained are shown below Sample Mileare. Impal Sample Mileagem 25.5 25.4 23.9 24.4 19 22.0 21.7 23.5 27.1 23.0 23.9 23.6 19.2 22.7 26.0 21.3 21 20.7 22 22.8 Enter the data into an Excel spreadsheet and then analyze...
Using mat lab to do it
Create a single script file named yourname_While.m to answer the following problems. The file must be in cell mode to distinguish each problem. Make sure your script is nicely commented for each problem. Consider the following matrix of values: x =[345, 23, 17, 34, 85, 334, 111, 1067] Use a for loop and if statement to determine how many values greater than 30? Use fprintf to display the result. Repeat Problem 1., but use...
SHELL SCRIPT: Provide the following questions with the codes and command line Problem 5: Take 5 input arguments in a for loop, but only add the even i values to sum and display the result. Problem 6: Write a shell script that accepts path of the directory and returns a count of all the files within the specified directory. (Hint: use alias to perform cd operation) Problem 7: Write a shell script that takes an ‘count’ value as an input...
Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8 9 10 11; 23 9 16 15 ;11 12 3 6; 1 2 8 9 ) ? = ( 2 21 7 15; 12 4 8 22; 23 9 5 13; 23 4 21 22) ℎ = (4 9 12 15) b. Add suitable lines of codes to the M-file to do the following. Each of the following points should be coded in only...
1) Write a script that plots sin(x), cos(x), tan(x) for x between 0 and 360◦ (or 2π radians) on one graph, adjusts the y axis to range between −10 and +10, and includes a legend identifying each line. 2)Write a Matlab function that sums up a specified number of odd-power terms from the Maclaurin series of sin(x) For example, if you use the function you wrote to sum the first 10 terms for x = 1, you should get 1...
provide a python script please
For the following vectors and matrices, using the NumPy library, write a script file that determines the solution for x given by the equation x-(A AT)b-Cd where AT denotes the transpose of A 1 2 3 4 16 12 8 4 A-2 4 6 8 3 6 9 12 4 8 12 16 C-12 9 6 3 8 6 4 2 4 3 2 1 4 The output to the command terminal prompt within Spyder...
please help me solve these problems step by
step. i will rate the best answer.
9. Given that the Ksp for calcium fluoride [CaF2] is 3.2 x 10^-15, which of the following describes a solution that is 2.00 x 10^-5 M NaF and 2.00 x 10^5 M Ca(NO3)2? A) Q = 4 x 10^-10 and there will be a precipitate formed B) Q = 8 x 10^-10 and there will be a precipitate formed C) Q = 8 x 10^-15...