what will be the output of the followint script? %List of sub areas AA=[10, 5, 5]; %List of centroid sub areas y= [5, 3, -2]; %Find the centroid cntrd= find_Centroid(AA, y); disp(cntrd)
Q: 6. Request Content-Type header fetch(url, { method: 'post', headers: { "Content-type": }, body:…
A: Request Content-Type header
Q: want create matrix multiplaction but my web-site calculate wrong. can you see where the error is,…
A: Web programming refers to the writing, markup and coding involved in Web development, which includes…
Q: Create an app that performs the required actions below. You may use the previous assignment files to…
A: insert-wish-form.php <!DOCTYPE html> <html lang="en"> <head> <title> Wish…
Q: Which statement about this error handling function is correct? function handleErrors(message,…
A: Error Handling alludes to how Express gets and processes blunders that happen both simultaneously…
Q: you help me I want to display and search at the table in the same time and fetch those results and…
A: It is defined as a open-source, interpreted, and object-oriented scripting language that can be…
Q: 5) Which command used to round the value toward + ∞o? a) ceil (X) b) floor (X) c) round (X) 6) Which…
A: We will solve the first three sub-parts for you. To get the remaining sub-parts solved please repost…
Q: Write the head and tail commands that swaps two chunks of 51 lines from file myfile and re-saves it…
A: head and tail to grab different sets of line from one file myfile . lines 1-51 and lines 52-102 and…
Q: In the interval 0<x< 2x using 100 data points. 1. Use the plot command to display these functions on…
A: Given:
Q: Find three patterns respositories for webapp patterns, select one patterns from each and present…
A: The repository pattern is intended to create an abstraction layer between the data access layer and…
Q: https://pastebin.com/raw/zpnrNqpJ Fix the Replace function in this C project and make sure it works…
A: We need to fix update function, if not working properly.
Q: In your Employee/Index.cshtml razor page you want to create a link to the Employee Controller, Add…
A: url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id…
Q: How many trainable parameters are included in the following three Layers? [keras.layers.Conv2D(64,…
A: The solution for the above given question is given below:
Q: element specifies the URL of the script on the web server that will be invoked to process the form’s…
A: The given question is a MCQ type question.
Q: Write the source code of a “self-calling/self-processing” PHP page. This page should ask a…
A: Begin Enter a word from HTML Create a submit button If the button has been clicked Display the…
Q: Consider the following source code, which was discussed in the midterm: (defun eww-detect-charset…
A: The functions you evaluate by typing keystrokes are called commands. The keystroke used for…
Q: What is the number of page faults if the page reference string is 4,5,4,5,4,5,5,4 using FCFS with 1…
A: Answer to the given question choice(b) is the right answer The explanation for the given answer is…
Q: Which shortcut command is used to open a new document? O a. Control N O b. Alt N O c. Alt O Od.…
A: Answer is option A
Q: Rewrite the code so it looks different but has the same output connect_error); $facultyQuery =…
A: There I discussed points to optimise the php code: 1.use native php functions. 2.use single Quotes,…
Q: BL0008, TLIMIT and TBALANCE get printed in what section of the report? Select one: a. TRAILER-2 b.…
A: It is defined as a document that presents information in an organized format for a specific audience…
Q: ________ element is required in a web application to operate the Server-Sent Events?
A: The given question is a fill in the blanks type question related to HTML5 - SSE (Server-Sent…
Q: Suppose you’re developing an application which stores a user’s browser history. Explain which…
A: STACK collection class will help to retrieve information of the last visited page.
Q: this is a package json { "name": "LiveEmbellishedAnimatronics", "version": "1.0.0", "description":…
A: ANSWER:-
Q: display and search at the table in the same time and fetch
A: ANSWER:
Q: Complete the Python program below to display the name of the most recently added dataset and collect…
A: 1. Complete the Python program below to display the name of the most recently added dataset and…
Q: Explain the difference between ls -l > mylisting.txt and ls -l >> mylisting.txt
A: Answer: ls -l > mylisting.txt This command will create the file "mylisting.txt" and fills it…
Q: Provide for a treatment and in case no value is entered for age
A: I have displayed the column name and age in the table format in HTML for the following conditions of…
Q: True or false? If server-side PHP code is correctly delimited and contains no syntax error, then the…
A: Given: To declare statement s true or false.
Q: Which of the following input values results in a successful INSERT of O’hara?a. ‘O^ hara’b. ‘O’…
A: Insertion of ‘O’‘hara’ data using “INSERT” statement will produce the result as O’hara. “2” single…
Q: Hard links need to reside on the same filesystem as the target, whereas symbolic linksneed not be on…
A: Links: In Linux, links act as pointers that point to a file or a directory. Links also facilitate…
Q: e
A: (i) Digital Fingerprinting Technology empowers the substance proprietor to practice control on their…
Q: reate a session variable called SProot and assign the generated positive root value to it in…
A: Create a session variable called SProot and assign the generated positive root value to it in…
Q: ould i fix this issue ? const express = require('express'); const exphbs =…
A: Hey there, I am writing the required solution of the above stated question.Please do find the…
Q: Task (4) Assume that the user made changes to the default data and then clicked the Save, Write PHP…
A: update code: [user made changes to default data means update of data] DATABASE_FILE.PHP <?php…
Q: Question 12 How do you change data field positions for a PivotTable? a) Rename a field to change the…
A: What is pivot table ----> when we have huge amount of data it is really difficult to handle and…
Q: Which one of the following attributes can be included in tag ? a. TARGET O b. ALT О с. АСTION O d.…
A: Form will have many attributes that can specify the various styles or actions that can be performed
Q: What is the below LDAP script used for? $strClass = "User" $strName = "CN=MyNewUser" $objADSI =…
A: LDAP (Lightweight Directory Access Protocol) is a software protocol that allows anybody to find data…
Q: Which of the below commands allows for accessing the first clement in a list L (assuming there is at…
A: Question:
Q: I am trying to scrape price and circulating supply for all the cryptocurrency listed on…
A: I would recommend you to use CoinMarketCap API to obtain the data. First 10K calls are for free. The…
Q: Do you have any plans to improve the security
A: Do you have any plans to improve the security of the following URLs (hyperlinks)? Answer: Following…
Q: 4. Write a PHP script task4.php that connects to the database and displays the results of the query…
A: 4.Step 1: Establishing connection with server using the command below: $connection =…
Q: Which command option for In is used to create a symbolic link?
A: ln is a command utility for making joins between records. As a matter of course, the ln order makes…
Q: Explain the difference between the commands below curl -s localhost curl -v localshot
A: curl is program (comes by default in unix/linux and is in path, so can be used as a command in bash…
Q: ARIES supports ___________ operations, which are physical in that the affected page is physically…
A: Answer is a. Physiological redo ARIES supports physiological redo operations, Which are physical in…
Q: Examine the following code. function getData() { var url = "ajaxdata/citStudents.txt"; var…
A: Given The answer is given below. Given code: function getData() { var url =…
Q: The first page is a static page and it is stored as "index.html" The second page is a dynamic page…
A: Note- as the question picture is multipart, as per our company guidelines, i can only answer the…
Q: Provide a function named getFromSessionStorage that will retrieve the object you put in session…
A: Added the ID and attributes on paragraphs and buttons in the HTML part…
Q: In a CURSOR FOR Iloop, which command is used to open the cursor? Answers: FETCH a. b. ОРEN FOR LOOP…
A: Given:
Q: priority anan holds items: 18, 47, 85 (front is 18). Where does Enqueue(numPQueue, 47) add an item?…
A: The given problem is related to data structure Queues. The requirement is to find the position where…
Q: Create a TRIGGER to ensure all new email address are lowercase
A: In MySQL, a trigger is created to respond to the events like insert, update, or delete performed on…
Matlab
Step by step
Solved in 2 steps
- Write a program for Histogram Equalization of an image without using the built-in function histeq.Write a MATLAB function sumOddInts(). sumOddInts should return the sum of all odd integers between the values provided to the two parameters, inclusive, e.g., sumOddInts(5,9) should return 21. start and finish do not have to be odd, e.g, sumOddInts(4,8) should return 12. start and finish do not have to be positive, e.g., sumOddInts(-5,7) should return 7, However, finish may be assumed to be greater or equal to start. whereas Python has a modulo operator "%", MATLAB has a built-in mod() function that returns the remainder. For instance, >> mod (13,5) ans = 3>> mod (13,2) ans = 1Write a function (in MATLAB) with header [b] = myDec2Bin(d) where d is a positive integer in decimal and b is the binary representation of d. The output variable, b, should be a row vector of ones and zeros and the leading term must be a 1 unless the decimal input value is 0. Thank you! Test Cases: >> b = myDec2Bin(23) b = 1 0 1 1 1 >> b = myDec2Bin(38) b = 1 0 0 1 1 0
- Subject: Discrete StructuresQuestion: Given 10 cards. On each card, one of the numbers from 0 to 9 are printed. Each number is only used once. What is the probability of Drawing a number greater than 10?Define a MATLAB function named getAndReturnVectorElements() that would accept one vector of any size as the argument. The getAndReturnVectorElements() function should get only the 3rd, 6th, and 9th elements of the vector passed to it and return those 3 elements as a vector (assuming the vector passed to the function does have those elements). The function MUST return a vector. The function should NOT print anything. Note: Do NOT use vectorized code. Other than the built-in functions listed above, do NOT use any built-in functions. You MUST use the "programming concept" method of writing code. For example, if I call the getAndReturnVectorElements() function and pass the [1 2 3 4 5 6 7 8 9 10] vector to it, then the function would return the [3 6 9 ] vector. If I call the getAndReturnVectorElements() function and pass the [88 44 22] vector to it, then the function would return the [22] vector. If I call the getAndReturnVectorElements() function and pass the [88…In Python Each image-processing function that modifies its image argument has the same loop pattern for traversing the image. The only thing that varies is the code used to change each pixel within the loop. The topic of higher-order functions, discussed in chapter 6, suggests a simpler design pattern for such code. Design a single function, named transform, which expects an image and a function as arguments. When this function is called, it should be passed by another function that expects a tuple of integers and returns a tuple of integers. This is the function that transforms the information for an individual pixel (such as converting it to black and white or gray-scale) The transform function contains the loop logic for traversing its image argument. In the body of the loop, the transformfunction accesses the pixel at the current position, passes it as an argument to the other function, and resets the pixel in the image to the function’s value. Write and test a script that…
- Subject: Discrete StructuresQuestion: Given 10 cards. On each card, one of the numbers from 0 to 9 are printed. Each number is only used once. What is the probability of Drawing a five?In 4-6 sentences, explain the similarities and differencesbetween vector and raster artwork. Also, write about whatprograms are used for eachSolve the problem using C++ (Pattern recognition: consecutive four equal numbers) Rewrite the isConsecutiveFour function in Programming Exercise 8.21 using a vector as follows: bool isConsecutiveFour(const vector < vector < int > > & values) Write a test program like the one in Programming Exercise 8.21. Sample Run 1 Enter row size: 6 Enter column size: 7 0 1 0 3 1 6 1 0 1 6 8 6 0 1 5 6 2 1 8 2 9 6 5 6 1 1 9 1 1 3 6 1 4 0 7 3 3 3 3 4 0 7 The array has consecutive fours Sample Run 2 Enter row size: 6 Enter column size: 7 0 1 0 3 1 6 1 0 1 6 8 6 0 1 5 6 2 1 8 2 9 6 5 6 1 1 9 1 1 3 6 1 4 0 7 5 5 5 3 4 0 7 The array does not have consecutive fours
- Under your module imports, paste the following definitions: (define WIDTH 300) (define HEIGHT 160) (define ES (empty-scene WIDTH HEIGHT)) (define (next-size s) (/ s 2)) Next, write a tail-call recursive function called circles. This function should take two numbers, x and size, and a Scene scn. If size is less-than or equal to 2, then your function returns the scn unchanged (base case). Otherwise, your function should place a circle in the Scene that results from a recursive call to circles with x shifted by (+ size (next-size size)), a new size of (next-size size), and using the original Scene. After evaluating (circles 100 48 ES), your function should output this image of five blue circles, in this order, with the first circle at (x,y) coordinate position (100, 80):Recursion efficiency in Julia can be improved using memorization technique to store the values of previously computed functions. The following Fibonacci function below does not employ memorization, please change into a recursive function with memorization: function fib(n) if n==1 return 1 elseif n==2 return 1 elseif n<=0 printstyled("Invalid input",color=:red) return else return fib(n-1)+fib(n-2) end endRotation matrices in Matlab: Using the template proposed below, write a Matlab function trotz that takes as input the value of an angle theta and returns a 4x4 homogeneous transformation matrix representing rotation about the Z axis by that angle. Analogously, create functions troty and trotx. function T = trotz(theta) %% (add code here) end