
Answer All questions. Take screenshots when using MATLAB to write the scripts and insert them in your final report.
3. Plot a two-dimensional graph of the two
x=[ 10.2 * 30 40 50 60 70 ] and
y = [11 23 14 16 22 23 25] using the plot command.
Add to the graph a suitable title along with labels for the x-axis and the y-axis.
4. Plot the mathematical function y = 4x ^ 2 + 3 in the range x from - 7to + 7 o Include a title for the graph as well as labels for the two axes.
o Show the curve with a blue dashed line with circle symbols at the plotted points.
5. Plot the following four mathematical functions each with its own diagram using the subplot command. The functions are y = 2x ^ 3 - 4 z = x + 1 , d = x ^ 2 - 2 and v = x ^ 2 + 3 . Use the vector x=
[1 2 3 4 5 6 7 8 9 10] as the range for x.
o Include a title for the graph as well as labels for the two axes.
o Print the legend box
o Move the legend box to the south east
6. Use the surf command to plot a three-dimensional surface of elements of the following vectors: x =[1 2 3 4 5 6 7 8 9 10]. y =[1 2 3 4 5 6 7 8 9 10]. and z= sin(x) .^ * cos(y).
o There is no need to show title or axis information.
o display color scale
![[11] Convert each of the following expressions into sum of products and product of sums :
(a) F = (AB+C)(B+CD)
(b) F= x + x(x + y) (y + z)
[12] Express the following functions as CSOP and CPOS expressions:
(a) F(x,y,z) = (x+y+z)(x+z') + yz
(b) F(w, x, y, z)=xy(wz+wz) (w+xz)
in terms of x, y, and z
in terms of w, x, y, and z
[13] Given the following pulse trains for A, B and C, draw the pulse trains for F₁ and F2.
B
A
C
D
F1
D
Draw the answers here
F2 B 0
F₁
A 1
F2
C 0
1
0
1
1
1
0
1
0
0
0 1
1
1
0 1
0
0
1
1](https://content.bartleby.com/qna-images/question/f5e6982d-71ef-4482-a501-2988a26ec89b/a0d19c31-0a6c-48ed-a6f0-fc43079099cd/w141rg_thumbnail.jpeg)

Step by stepSolved in 5 steps with 2 images

- Practice Test Question #1: You want to solve a simplified 4x4 version of the Sudoku game with the following grid configuration (image attached): (a) Show the first ten steps of backtracking search on the sample provided, where you order the variables in increasing order first by row, then by column (in English reading-order), and the values from lowest to highest (1 to 4). Recall that backtracking search uses a depth-first strategy to expand the search tree. (b) Show the first ten steps of backtracking search on this problem with one-step forward checking, with the same variable ordering.arrow_forwardRead the sunspot data file and produce a scatter plot of os sunspot countsfrom 1849 to 2023. Use a marker size of one, and make the marker face and edge colors the same.Label the horizontal axis with years. Plot all the data points for every day from 1840 to 2023. Create the numbers for the horizontal axis by extracting the year from the lines inthe data file. You can look at the peak finding example programs to see a use of scatter plots. This should be a fairly quick assignment. The next program will involve using the same sunspot data, appyingsmoothing, then finding and plotting the peaks and computing the period of the solar cycle.arrow_forwardWrite down the pros and cons of using the star shape instead of the snowflake shape. Which is odder?arrow_forward
- Hi, could you create a state diagram for Part A? Visualizing it would really help me understand. Additionally, I'm seeking assistance with both Part A and Part B. If you could label the different sections, it would make it much easier for me to grasp. I'm really struggling with this problem and its related challenges, so your help would be greatly appreciated. Thank you.arrow_forwardPlease explain the code fully thanks. Using Matlab Write a function g=ImagePad(f,r,c,padtype,loc) with input image f and output image g. If ’padtype’ is ’zeros’, the function should implement zero padding. If ’padtype’ is ’replicate’, replicate padding should be implemented (in which intensity values for pixels outside the boundary are set equal to the intensity value of the nearest boundary pixel). If ’padtype’ is ’mirror’, mirror padding is implemented in which the padded part is a mirror reflection of the image. You should first reflect in the horizontal boundary, then in the veritcal boundary. If ‘loc’ is ’both’, then r rows are added above and r rows are added below the image, and c columns are added to both the left and the right of the image. If ’loc’ is ’post’, then r rows are added below the image, and c columns are added to the right of the image. Test your program and demonstrate that it works.arrow_forwardBuild on our PBM image creator from (code shown below) to create a fully functional image editor (in C++), using 2D arrays to store our changes. To make it more interesting by switching to the Portable Gray Map standard. 8 bit PGM files have color values ranging from 0 (black) to 255 (white), with the values in-between being shades of gray. The header is very similar to PBM, and looks like this: P2 WIDTH HEIGHT 255 IMAGE_DATA The P2 tells image readers that it is a PGM file, and the 255 indicates the largest possible color value is 255. You will first prompt the user to enter a width, height, and initial color value to fill the image. You should then create a 2D array with those dimensions and initialize each cell with that color value. You will then use a loop to create a menu that repeatedly prompts the user to make one of the following choices: Fill in a pixel with a new color ◦ Prompt the user to enter a row and column value and a new color value. If the array has that row and…arrow_forward
- Please write detailed. Python.arrow_forwardConsider the scenario described by the following statement(s): “A story could be in a movie, a book, or both..” Model this statement using the crow’s foot modelling technique. Create your diagram in draw.io (or equivalent), save it as either a JPG or PNG file format, and upload your image using the "Files" area below. Upload your answer as an appropriate image file. Write any justifications for your design in the text area. I need the carrect answer as soon as possible pleasearrow_forwardI need the answer as soon as possiblearrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





