Professional Interests: neuroscience, multimodal neuroimaging
Top 1% contributor
Answered 2 years ago
Given a regular verb, return the simple past.
Input verb = 'to work'
Output simple_past = 'worked'
2 years ago
Use an auxiliary variable:
tmp = results(:,6); tmp(tmp==0) = NaN;
3 years ago
In honor of Valentine's Day, program a love calculator that figures out the percentage of compatibility between two people using...
Factorial is multiplication of integers. So factorial of 6 is
720 = 1 * 2 * 3 * 4* 5 *6
Thus 6 factorial = factorial(720)....
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.
Given a, b and c, Return the solution of the following quadratic equation:
a*x^2 + b*x + c = 0.
Create a star pyramid. First line will have 1 star, second will have two stars and so on... a basic program which is easily done...
In honor of this being the 500th Community problem, see if you can create a function that has a Cody size of 500. It can do any...
The task is to multiply two numbers. But do it in the most peculiar possible way.
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...
Say something funny, or not.
Your solution will be (fully automatically and objectively) scored based on how clever or funny ...
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component.
Find the number of 1s in the given binary string.
Example. If the input string is '1100101', the output is 4. If the input stri...
You have a phenomenon that produces strictly positive or negative results.
delta = [1 -3 4 2 -1 6 -2 -7];
If given a letter from the set:
and a shift, implement a shift cypher.
with a shi...
For three unknown points a b c, given three sides ab bc ca, find three angles abc bca cab in radians.
Your function should b...
Fast Fourier Transformation from vector [2,1])
Make the following variable:
Apply element-by-element binary operation 'fun' to two arrays (A and B).
Split a string into two strings, first string has all alphabetic letters, next string has all the rest, keep the order please, o...
Write a program to count number of ones (1s) in an integer variable input.
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries