Weighted average
Compute the weighted average Y, of the vector A, given the weight vector W.
The weighted average is the sum of the dot produc...
5달 전
해결됨
Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients.
example:
a=[3 4 5];
b=[...
5달 전
해결됨
Concatenated roots
Which is the value of this infinte concatenated roots?
<<https://s27.postimg.org/i4hkin7xf/Code_Cogs_Eqn.gif>>
Note: If ...
5달 전
해결됨
calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter).
You should get pi without using the pi function in M...
5달 전
해결됨
Negative without '-'
Simple: return a negative number without using the '-' sign.
Thanks to Problem <https://www.mathworks.com/matlabcentral/cody/...
5달 전
해결됨
Subtract integers and add doubles
Create a function that subtracts a from b if a and b are integers and adds them if they are floats.
Calculate the sphericity of a Raschig ring
Sphericity is a measure of the roundness of any particle. It was defined by Wadell in 1935 as the ratio of the 'surface area of ...
Sum of big primes without primes
Inspired by Project Euler n°10 (I am quite obviously a fan).
With problem n°250 by Doug, you can find some global methods to ...
7달 전
해결됨
Infinite precision division
Develop a function that will divide a very very large integer numerator, supplied to function as a string (e.g., '12233344445555...
7달 전
해결됨
Yoonir - 01
Find the area of a five-pointed star inscribed in a circle of radius r.
약 1년 전
해결됨
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...
약 1년 전
해결됨
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match.
* If they match, create an output variable |z|...
약 1년 전
해결됨
Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|.
Mark the minimum...
약 1년 전
해결됨
Crop an Image
A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.