MatLAB | Mathematica | MathCAD | Maple Answers

Questions: 245

Answers by our Experts: 142

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

Calculate numerically the following integral with Matlab:
integral(0 t0 4)(e^x/sqrt(1+x^2))dx
use the rectangular quadrature of the following form:
I=integral(a to b)f(x)dx=(b-a)f(a)
using this quadrature, derive a compostive quadrature rule and the formula to compute this integral.
Write a Matlab function computing this integral.
Write a Matlab script to determine the positive roots of the equation:
x^3-7x^2cos(3x)+3=0
solving the following nonlinear equation using the newton's method:
cos(2x-1)-e^x=0
Write Matlab script implementing this method.
As a termination criteruim, use the maximal number of itertions equal to 10.
Think about the choise of the initial guess.
use Matlab for solving the following integral:
integral(-1 to 4)((1+5e^(-25x^2)/(1+x^2/25))dx.
In searching for the placement of a key x ̄ in a sorted array x(i), i = 1,2,...,n, binary search partitions the current search domain into two subdomains by always selecting the mid-point index n/2 (or (n+1)/2, if n is odd) of the array. Clearly, binary search does not take into consideration the key value x ̄ in selecting this mid-point.
A simple variation of binary search, called interpolation search, is based on partitioning the current search domain such that the “mid-point” index is guessed by assuming a linear interpolation of the indices between the first key value x(1) and last key value x(n).
create a new function isearch which implements the
interpolation search algorithm.
I need some one who can do the project for me. The project involves compressing multiple images using transform, quantiser, entropy coding and finally bitstream to encode the image, and reverse the process to finally decode the compressed images. Let me know your price. I would be able to give more details if required on what the task is about if needed, and will also provide the images needs to be compressed.
How can I write a Matlab function “chi2test”, which will be used to carry out the hypothesis testing for population variance. The prototype of the function is
[h, chi2value, df] = chi2test(sample, var0, alpha, tail)

where

h = Conclusion of the test. The value 0 indicates rejection the null hypothesis. Otherwise, return the
value 1.
chi2value = The value of test statistic.
df = The degrees of freedom of the 2 distribution if the H0 is true.
sample = The sample data for the test.
var0 = The assumed population variance in the H0.
alpha = The level of significance of the test.
tail = The value 0 indicates a two-tailed test. The value 1 indicates a lower-tailed test. The value +1 indicates a upper-tailed test. Otherwise, print “error”.
create a script guessing_game.m
computer generates a random integer between 1 and 20 inclusive
allow the user to guess 5 times or until the user gets the correct answer
count and display the number of guesses before a correct answer was made
stop if the user does not put in a value
display an appropriate message if the user wins or gives up
display a hint if the user gets the wrong value

script name guessing_game
intput variable: computer
input variable: guess

output variable: result
result = 0 if the user did not enter a value the loop exits (guess is an empty vector)
result = 1 if the user wins (matches the computer value)
result = 2 if the user loses (does not match after 5 guesses)

output variable: hint
hint = ‘low’ if the guess is low
hint = ‘high’ if the guess is high
output variable: count = number of guesses that the user makes including the winning guess
Use Matlab to:
Create a function that accepts two numbers as input and returns 1 if the second divides the first, and 0 otherwise.
◦Bonus points if you make the function work with matrix inputs (and give a matrix output).
Hello, I would like to know how I can get a current-voltage-curve from the maximum points of the crrent and the voltage?
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS