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

Write a single program that calculates the arithmetic mean (average), rms average, geometric mean
and harmonic mean for a set of n positive numbers. Your program should take two values xlow and
xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic
mean (average), rms average, geometric mean and harmonic mean.
If there is a group of n people in a room, what is the probability that two or more of them having same
birthday? It is possible to determine answer to this question by simulation. (Hint: You can generate
random dates, n times and determine the fraction of people who born in a given day). Write a function
that determines the answer to this question by simulation. The program you write can take n as the
input and prints out the probability that two or more of n people will have the same birthday for
n=2,3,4…. 40
If there is a group of n people in a room,
what is the probability that two or more of them having same
birthday? It is possible to determine answer to this question by simulation.
(Hint:
You can generate
random dates
,
n times and determine the
fraction of people who born in a given day).
Write a f
unction
that determines the answer to this question by simulation. The
program
you wr
ite can take n as the
input
and prints out
the probability that two or more of n people will have the same birthday for
n=2,3,4.... 40
Question-1:
The Birthday Problem: The birthday problem is stated as follows:
If there is a group of n people in a room, what is the probability that two or more of them having same birthday? It is possible to determine answer to this question by simulation. (Hint: You can generate random dates, n times and determine the fraction of people who born in a given day). Write a function that determines the answer to this question by simulation. The program you write can take n as the input and prints out the probability that two or more of n people will have the same birthday for n=2,3,4…. 40
Question-2:
Write a single program that calculates the arithmetic mean (average), rms average, geometric mean and harmonic mean for a set of n positive numbers. Your program should take two values xlow and xhigh and generate 10000 random numbers in the range [xlow…xhigh], and should print out arithmetic mean (average), rms average, geometric mean and harmonic mean.
The definitions of means are given as follows.
Question-
,I am trying to find peaks of whole Curve or graph or ECG .... but i dont know why in my code show peaks in y vector, while i need it in whole of ecg

If someone could point me in the right direction it would be greatly appriciated.

x = load ('C:\ekg\example_ecg.txt'); y= x ( : , 2); [pks,locs] = findpeaks(y); plot (y); hold on ; plot(pks,y(locs),'rv','MarkerFaceColor','r' ); grid on
can we create a scenario that clusters are formed when event occurs and how can i create the event
can u provide me the code for it?
we do project in face recognition for exam attendance
can we get code for matching the photos for students
Solve the following systems of equations using both the matrix left divison and the inverse matrix methods:

(a) -2x1 + x2 = -3
x1 + x2 = 3

(b) 10x1 - 7x2 + 0x3 = 7
-3x1 + 2x2 + 6x3 = 4
5x1 + x2 + 5x3 = 6

(c) x1+ 4x2 - X3 + X4 = 2
2x1+ 7x2 +x3 -2x4 = 16
x1 + 4x2 - x3 + 2x4 = -15
3x1 - 10x2 -2x3 + 5x4 = -15
Create a vector of x values from 0 to 20π, with a spacing of π / 100, where
y = x ∙ sin(x)
z = x ∙ cos(x)
12. Create an x-y plot of x and y.
13. Create a polar plot of x and y.
14. Create a three-dimensional line plot of x,y, and z. Be sure to add a title and lables.
15. Figure out how to adjust your input to plot3 in Problem 14, to create a graph that looks like a tornado.
Use your favorite internet search engine and World Wide Web browser to identify recent currency conversions for British pounds sterling, Japanese yen, and the European euro to U.S. dollars. Use the conversion tables to create the following tables. Use the disp and fprintf commands in your solution, which should include a title, column labels, and formatted output.
3. Generate a table of conversions from yen to dollars. Start the yen column at ¥5 and increment by ¥5. Print 25 lines in the table.
4. Generate a table of conversions from the euro to dollars. Start the euro column at €1 and increment by €2. Print 30 lines in the table.
5. Generate a table with four columns. The first should contain dollars, the second the equivalent number of euros, the third the equivalent number of pounds, and the fourth the equivalent number of yen.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS