Gelöst


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

mehr als 7 Jahre vor

Gelöst


Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

mehr als 7 Jahre vor

Gelöst


Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

mehr als 7 Jahre vor

Gelöst


Sum of unique multiples of 3 and 5
If we list all the natural numbers up to 15 that are multiples of 3 or 5, we get 3, 5, 6, 9, 10, 12 and 15. The sum of these mul...

mehr als 7 Jahre vor

Gelöst


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...

mehr als 7 Jahre vor

Gelöst


Day counter function
Write a function called _day_counter_ that returns the number of Mondays that fell on the first day of the month in a given year...

mehr als 7 Jahre vor

Gelöst


basic matrix operations: rotate and find sum of diagonal elements of the resultant matrix
For given input matrix a, rotate it by 90 degrees and find the sum of the diagonals. Example: Input: a = 1 ...

mehr als 7 Jahre vor

Gelöst


Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

mehr als 7 Jahre vor

Gelöst


Product of all elements in an array
Compute the product of all elements in an array.

mehr als 7 Jahre vor

Gelöst


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

mehr als 7 Jahre vor

Gelöst


convert the number to binary format & count digits
Convert the given number to the corresponding binary format and count the number of digits in that binary number

mehr als 7 Jahre vor

Gelöst


Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

mehr als 7 Jahre vor

Gelöst


Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

mehr als 7 Jahre vor

Gelöst


Calculating the total earnings of a factory
The row vector, prods contains the number of various products manufactured per hour. The second row vector, prices holds values ...

mehr als 7 Jahre vor

Gelöst


ASCII sum of phrases
Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

mehr als 7 Jahre vor

Gelöst


surface areas of a cylinder
There are 3 inputs: option, radius and height. If option= '1', compute the lateral surface area of the cylinder, for option 2 ca...

mehr als 7 Jahre vor

Gelöst


Percentage of zeros in a matrix of only 1s and 0s
Write a function called _zero_stat_ that takes a matrix as an input that only has 0 and 1 elements. The function needs to comput...

mehr als 7 Jahre vor

Gelöst


Check for keywords
If the entered string is a MATLAB keyword, return true else false

mehr als 7 Jahre vor

Gelöst


Substring Extraction
In a given string, find the substring between Start_string and End_string. You will have to include or exclude the Start_str...

mehr als 7 Jahre vor

Gelöst


False position (linear interpolation) method of finding a root.
Test the false position algorithm described in Chapter 5 of Steven C. Chapra's textbook, *Applied Numerical Methods with MATLAB ...

mehr als 7 Jahre vor

Gelöst


Compute the intersect point of line and plan
Compute the intersect point of line and plan. eg. line AB, the coordinate of A is (1,2,3) the coordinate of B is (-4,-5,-6...

mehr als 7 Jahre vor

Gelöst


Next Lower Power of B
Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is less than or equal to _n_. E...

mehr als 7 Jahre vor

Gelöst


Pull the variable y_correct from the Caller's Workspace
*Description* This highlights a very easy to use and high-scoring cheat that can be used on almost all Cody questions.

mehr als 7 Jahre vor

Gelöst


THE CALCULATOR OF LOVE
In honor of Valentine's Day, program a love calculator that figures out the percentage of compatibility between two people using...

mehr als 7 Jahre vor

Gelöst


Inhomogenous Depth Scale Interpolation
I recently came across a dataset for physical ocean parameters such as temperature and salinity that provided data in the form o...

mehr als 7 Jahre vor

Gelöst


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

mehr als 7 Jahre vor

Gelöst


Book Club
A book club that has _K_ members, as a group, have to read _N_ books. Return how many different ways the members could read the ...

mehr als 7 Jahre vor

Gelöst


Project Euler: Problem 16, Sums of Digits of Powers of Two
2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the sum of the digits of the number 2^N? Thanks ...

mehr als 7 Jahre vor

Gelöst


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/...

mehr als 7 Jahre vor

Gelöst


Can you beat the lottery again (for hardcore coder) ?
Inspired by the Problem 1713 by Chris E. Here is the code that generates the first lottery number: rng('shuffle'); numb...

mehr als 7 Jahre vor

Mehr laden