Solved


Phoneword Translator
Given an alphanumeric telephone number (Ex. 1-800-COLLECT), return the purely numeric phone number as a vector. This problem use...

5 years ago

Solved


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

5 years ago

Solved


Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...

5 years ago

Solved


Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

5 years ago

Solved


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

5 years ago

Solved


The Top 5 Primes
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...

5 years ago

Solved


Sum of series IX

5 years ago

Solved


Sum of series VIII

5 years ago

Solved


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

5 years ago

Solved


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

5 years ago

Solved


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

5 years ago

Solved


Digital Neighbourhood
Given a natural number reorder its digits to create another number, closest to the given one. Examples: * 123 gives 132, ...

5 years ago

Solved


Binary Neighbourhood
Given a natural number reorder its binary form to create another number, closest to the given one. Examples: * 1 gives 2, ...

5 years ago

Solved


Find out the Gray Code for a Given Binary Number
Find out <http://en.wikipedia.org/wiki/Gray_code Gray Code> for a given binary number Example Binary input 1000 Gray ...

5 years ago

Solved


Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

5 years ago

Solved


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

5 years ago

Solved


Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

5 years ago

Solved


De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

5 years ago

Solved


Big numbers, least significant digits
Given two numbers, x and n, return the last d digits of the number that is calculated by x^n. In all cases, d will be the number...

5 years ago

Solved


Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...

5 years ago

Solved


Bit calculation
Give me the count of numbers from 1 to n having their last two bits as 0. For example function y = ret_count(4) y = x...

5 years ago

Solved


Mysterious digits operation (easy)
What is this digit operation? 0 -> 0 1 -> 9 121 -> 9 44 -> 6 15 -> 5 1243 -> 7 ...

5 years ago

Answered
MATLAB B spline function
Here is the help doc explains all steps of b-spline fn2fm(): https://www.mathworks.com/help/curvefit/fn2fm.html and spline(): ...

5 years ago | 0

Answered
Replacing a group of values in a matrix
You can start with a logical indexing approach to locate where 1's located, e.g.: [Rn, Cn] = find(AM); % Initial Matrix with so...

5 years ago | 1

Answered
fit function to data
load x1.txt , load x2.txt , load y1.txt , load y2.txt plot(x1,y1,'or',x2,y2,'b*') % Differentiate different data sets while p...

5 years ago | 0

Answered
Can I calculate the inverse of a matrix using arrayfun?
In fact, you can employ arrayfun for the matric inverse calc, e.g.: tic; iA =arrayfun(@inv,A); toc; Note that arrayfun is no...

5 years ago | 0

Answered
How to make a plot with multiple x points have equal spaced points?
You can try unique() to remove some overlapping points and then interpolate.

5 years ago | 0

Answered
how i can construct Huffman Table using MATLAB
Use huffmandict(). See this help documentation how to employ this matlab fcn: https://www.mathworks.com/help/comm/ref/huffmandi...

5 years ago | 0

| accepted

Answered
- I dont understant about the Vandermonde matrix in Predicting the US population that is used in MATLABMATLAB Examples
It is quite straightforward to employ the Vandermonde matrix for linear or quartic or cubic, etc. polynomial fit model, e.g: P ...

5 years ago | 0

Answered
Polynomial graph(using plot function), Deflection Problem
You need to employ polyfit() for your anticipated fit models or just least squares method with Vandermonde matrix with \. SInce ...

5 years ago | 0

Load more