Top 1% contributor
Implement big integer multiply.
A, B : N-by-M Matrix, each row represents a positive decimal integer.
2 months ago
3 years ago
a = input('Enter Number of Cities need to travel: ');
b = 2;
t = xlsread('Data.xls');
Answered 4 years ago
do you mean this：
x=[0 -1.73205161513813 -1.73210161662818
0 -1.73205161513813 0
Given a function handle f, generate a function that evaluates the derivative of f
f = @sin;
df = De...
3 months ago
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...
4 days ago
Write a program to input an integer n and build a n-by-n matrix with the numbers 1,2,...,n on the main diagonal and zeros elsewh...
6 days ago
Calculate the total distance *'d'* (in meters) a ball would travel after *'s'* seconds and starting velocity of *'v'* (in m/s). ...
Determine the full width at half max of a curve.
The full width at half maximum (FWHM) is a parameter which is used for desc...
7 days ago
I'm talking about polygons... The sum of the interior angles of a triangle is 180 degrees. The sum of the interior angles of a...
15 days ago
This is the second part of the Xiangqi series. The first part in this series is: <http://www.mathworks.com/matlabcentral/cody/pr...
20 days ago
This Challenge is to demonstrate usage of varargout.
Output a cell array using varargout of magic squares of size 1 thru n.
25 days ago
Histogram of histogram (HoH) is a useful measure concerning the distribution of random data, which has diverse applications in d...
27 days ago
Create a 1 x 10 vector from 1 to 20 with increments of 2
Given a football by the Patriots, return it to them with 2 psi less air in it.
(The original psi is passed as a number to the...
Given an initial gravity of un-fermented wort (OG) and a final gravity of fermented wort (FG), better known as beer, it is possi...
A number's persistence is the number of steps required to reduce it to a single digit by multiplying all its digits to obtain a ...
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?;
x = [1 : 0.5 : 6];
28 days ago
Hard drive sizes are typically marketed using the decimal meaning of prefixes, whereas RAM uses binary meanings. For example:
* Imagine you have been blindfolded and asked to pick up any two books randomly from the table.
* There are n books suitable f...
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).
Create an anti-identity matrix of given dimension.
n = 2
A = [0 1; 1 0]
n = 3
A = [0 0 1; 0 1 0; 1 0 0...
* The prospective husband must pass a background check,
* and *functions* faithfully, as suggested by <http://www.mathworks.com...
How can you slow down any discrete-time signal?
Input original signal x.
x = [1 2 3 -1 -2 -5 -4]
We want t...
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?
1 month ago
If input is 1, the row and column will be 1 and 1 respectively.
The Vikram Samvat is said to have been founded by the emperor Vikramaditya of Malwa following his victory over the Sakas in 56 Y...
if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]
This is the first part of the Xiangqi series. The second part in this series is: <http://www.mathworks.com/matlabcentral/cody/pr...