Solved


Find the elements of a matrix according to a defined property.
From A = [5,2,3] and B = [1,2,3,4,5,6,7,8,9,10] produce a vector C where : C(1) is the sum of the first A(1) elements of B, ...

5 years ago

Solved


Grandpa's telescope
Two grandkids Dorothy and Benjamin are sharing a telescope made by their grandpa, who used an old lens of spectacles as the obje...

5 years ago

Solved


Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

5 years ago

Answered
I could not integrate using MatLab, Can you please help me?
syms t a c fun = 3*2^(1/2)*(1 - cos(4*t))^(1/2)*(a^2 + c^2)^(1/2); z = int(fun,t); %gives indefinite integral %result of inte...

5 years ago | 1

| accepted

Solved


Wheat on a chessboard pt 2
If a chessboard were to have wheat placed upon each square such that x grains were placed on the first square and each successiv...

5 years ago

Answered
Modulo-2 matrix multiplication
size(X) = [1 6]; size(Y) = [3 3]; X and Y are not compatible for multiplcation given their sizes. You can do something like t...

5 years ago | 1

| accepted

Solved


Sort a vector

5 years ago

Solved


Would you win a raffle?

5 years ago

Solved


Champernowne Constant
The <http://en.wikipedia.org/wiki/Champernowne_constant Champernowne constant> is a real number whose digits in decimal represen...

5 years ago

Solved


Find the mode of the given input
Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode> of the given input. Example: If X is matr...

5 years ago

Solved


Dial Up
Each number on telephone keypads, except 0 and 1, corresponds to a set of uppercase letters as shown in this list: 2 ABC, 3 DEF...

5 years ago

Solved


Find out phase angle of second order system.
Find out the phase angle of a second order system. In a control system, the phase angle is given by the inverse of cos.

5 years ago

Answered
Need help for Cody Problem 42409: Divisible by 7
You are getting the error because your code took to long to process than the allowed time limit. 1 - The input is in the form...

5 years ago | 3

| accepted

Solved


Draw a '9' in a zero matrix!

5 years ago

Solved


Draw a '7' in a zero matrix!

5 years ago

Solved


Min-Max digit

5 years ago

Solved


Highest building

5 years ago

Solved


End Digits

5 years ago

Solved


Digits Multiplication

5 years ago

Solved


Do you have the minimum age?

5 years ago

Answered
How to return the original polynomial from the calculated roots
So, the coefficients are not the same, but they are similar. %[1 -0.6667 -1.3333] is equal to [3 -2 4]/3. This is because, po...

5 years ago | 1

Answered
Norm and mean of a time series
One of the great features of MATLAB is that the error messages it generates are simple and clear. Norm is an inbuilt function wh...

5 years ago | 1

| accepted

Solved


Find the mean of a 2-D matrix after excluding elements of specified sub-matrix
You need to find the mean of a 2-D matrix after excluding elements which form an inner sub-matrix. e.g. If the input 2-D matrix ...

5 years ago

Solved


Counting Squares
An algorithm starts with a single square and on each of its next iterations adds new squares all around the outside as shown bel...

5 years ago

Solved


Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...

5 years ago

Solved


A matrix of introverts
You are given a matrix full of numbers who happen to be very shy. Write a MATLAB function that will put a square of zeros aroun...

5 years ago

Solved


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

5 years ago

Solved


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

5 years ago

Solved


Local Minima
Given a vector of data x, find the values of local minimum that is smaller than its neighbor elements. For example, if x =...

5 years ago

Load more