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

Distance between two points (x1, y1) and (x2, y2) is defined by:
distance = sqrt((x1-x2)^2+(y1-y2)^2)
Write a matlab function computeDistance that computes the distance between two points, with the
following signature.
function d = computeDistance(p1, p2)
Inputs:
p1 - coordinates of the first point as a vector with coordinates [x1 y1]
p2 - coordinates of the second point as a vector with coordinates [x2 y2]
Output:
d - the distance between the two points
Let
x0x1xn
be n + 1 distinct points on the real line and let f(x) be a real-valued function defined on some interval I = [a, b] containing these points. Then, there exists exactly one polynomial Pn(x) of degree n, which ..... f(x) at
x0x1…xn
The data file contains ASCII E,Q, and I intensity data. There is also error in Intensity but this would be not really important. The total number of E points are 141 and the total number of Q points are 95. This info is written in the first line. You are supposed to read these numbers first. Then Q and following E values are going to be read. After these two matrices are read, you are suppose to read the intensity data. Intensity data is going to be read Q times (meaning 95 times) from the blocks which are clearly noted in the data file. These blocks are in the same size with E so, 141 elements long. Each time when you read these intensity values, you should collect them in the I(Q,E) data matrix properly.

At the end you should have Q, E matrices which are arrays and an Intensity matrix of I(Q,E) 95x141 matrix.As the final thing you should draw the 3D figure with them.
Q. Write any two programs of MATLAB.
Write some statements to simulate spinning a coin 50 times using 0–1
vectors instead of a for loop. Hints: generate a vector of 50 random
numbers, set up 0–1 vectors to represent the heads and tails, and use
double and char to display them as a string of Hs and Ts.
Find the future value (FV) of a bank account starting with $500 and with compounding interest rate of 3% per year, using the formula:
Greetings,
I'm working on creating a Solar tracking system by taking snapshots of a stick's shadow. Then I want to find the position of the sun by using shadow detection or background subtraction of the stick.
In an experiment to determine the acceleration due to gravity g, T2 was plotted on the vertical axis and l on horizontal axis. The value of g is obtainable from.....

A. Intercept on T2 axis
B. intercept on l axis
C. intercept of the ratio T2/l
D. slope of the graph
In an experiment to determine the acceleration due to gravity g using the simple pendulum, T2 was plotted on the vertical axis and l on the horizontal axis. The graph

A. has an intercept on the T2 axis
B. has an intercept on the l axis
C. pass through the origin
D. is parallel to the l axis
In the scientific notation A × 10n, where n is an integer, The value of A must...

A. be greater than 10
B. be less than zero
C. lie between 1 and 10
D. be zero
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS