Questions: 10

Free Answers by our Experts: 10

Ask Your question

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

plot a sine wave and a cosine wave over one period Make a time vector t from 0 to 2p with enough samples to get smooth lines
Determine of the following Matrix [1 1 2; 1 3 2; 1 3 4]
Scalar variables. Make the following variables a. a =10 b. b = 2.5´1023 c. c = +2 3i , where i is the square root of -1 j2 / p 3 d. = , where j is the square root of -1 and e is Euler’s number1 d e (use exp, pi)
1. Throwing a ball. Below are all the steps you need to follow, but you should also add your own meaningful comments to the code as you write it. a. Start a new file in the MATLAB Editor and save it as throwBall.m b. At the top of the file, define some constants (you can pick your own variable names) i. Initial height of ball at release = 1.5 m ii. Gravitational acceleration = 9.8 m/s2 iii. Velocity of ball at release = 4 m/s iv. Angle of the velocity vector at time of release = 45 degrees
Consider the function f(x) = e x where e = 2.718 . . . is the base of the natural logarithm (ln = loge ), sometimes known as Napier’s constant. For x close to 0, e x can be approximated by a finite Taylor series: e x ≈ s = 1 + x + x 2 2! + x 3 3! + x 4 4! + · · · + x p p! where p is a positive integer. (a) Write a MATLAB program with a for loop to compute (and display) the approximation s of e x and the difference d = s − e x for p = 1, 2, . . . , num where x and num are entered by the user. Your program should use format long e and display the values s and d in two columns with appropriate headings. (Recall that e x can be computed in MATLAB using exp(x).) (b) Run your program with x = 0.5 and num = 10. (c) Use your program to find the smallest value of p for which the difference s − e 0.5 is less than 10−14 in absolute value.
Consider the parabola defined by y = x 2 − 2x − 1. The distance d(x) from the origin (0, 0) to a point (x, y) on the parabola is given by d(x) = q x 2 + (x 2 − 2x − 1) 2 . (a) Write a MATLAB program and function M-file to plot d(x) for −2 ≤ x ≤ 4. Also use the function M-file and the fminbnd command to find (and display) the point (xmin,ymin) on the parabola that is closest to the origin and display the minimum distance (i.e., the distance from the origin to the point (xmin,ymin)). (b) Write a MATLAB program using the fzero command to find the point(s) on the parabola at distance 4 from the origin.
Write a MATLAB function (not a script!) to generate a periodic waveform of total length L. Each period must be a pulse of amplitude A that lasts a total of M samples followed by T − M samples that are zero so that the overall period is T. The result should be a square wave. You can learn some tricks from the triangular waveform function example in MATLAB for DSP to write this function without loops. (This is not necessary for full credit.) Note that this function is not exactly the same in terms of arguments or units. Include a listing of your function. The function may not call a signal-generating function in the MATLAB Signal Processing Toolbox.
In this HW, you are asked to implement histogram of oriented gradient (HOG) descriptor from scratch as discussed in class. HOG is not just used in interest point descriptors such as SIFT. It is also a widely used feature for object recognition. For simplicity, we will ignore the step of finding interest points but simply partition the image into cell/patch and compute the HOG in each cell. You can use Matlab. (Note that the Matlab demo appears to display the gradient with 90o rotation and thus shows something a bit different.) " p/s: I NEED the source code and picture result of the (file-20170526-6421-1j3azw3.jpg) image. I uploaded my professor's example images and his resulting picture (gantrycrane.png and hog_result.png) to show you the result I want for the ((file-20170526-6421-1j3azw3.jpg). You can cut half of the picture if it's too big.
assignment is to explore the following matlab functions: rand, disp, display, size, reshape, max, sum, repmat, ones, zeros, imshow, imhist, rgb2gray You should write some matlab code to demonstrate the working of each of the above functions. Your matlab code should be written in such a way that any user without any prior knowledge of matlab should be able to read your code and understand exactly what a matlab function is doing in easy-to-understand manner. You may add comments in your code to explain thing in more detail. If you are using Octave, you may need to add the following line on the top of your code: pkg load image;
Create a function (prob3_1) that takes an input vector of integers (each between 1 and 100) and will output the number of elements strictly greater than 30 and calculate the sum of all elements in the vector. Do this only with loops and if statements, do not use the SUM function.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal