Professional Interests: MATLAB - statistics - modeling
Top 1% contributor
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...
8 months ago
The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input matrix, generate an output matrix that consists o...
1 year ago
x and y are input vectors, d is a number and contains their dot product
Create a row array from 9 to 1, using the double colon operator.
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
A, B and Z define three points in the 3D _Euclidean_ space of the form:
A = [x1;y1;0]; B = [x2;y2;0]; Z = [x2;y2;z];
Given the input inStr, give the boolean output out indicating whether all
the parentheses are balanced.
* If ...
* Given an integer number you have to return the number of its digits.
* For example 248 has 3 digits and 1589 has 4 digits
max 15th place after the decimal point is ok for now
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.
This is a sub problem related to this problem:
Given a vector:
[1 0 -1 3 2 -3 1]
and a window of 2,
A sliding window would find:
1 + 0 = 1
0 - 1 = -1
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice.
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...
Given a vector x, the output y should equal the length of x.
This is a basic MATLAB operation. It is for instructional purposes.
You may already know how to <http://www.mathworks....
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...
Return 1 if number _a_ exists in vector _b_ otherwise return 0.
a = 3;
b = [1,2,4];
a = 3;
b = [1,...
you just discovered its circumference, that is the input.
Given an amount of currency, return a vector of this form:
[100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01]
Input a = ...
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...
x = [1 2 4; 3 4 5; 5 6 7]
then y should be the sum of the diagonals of the matrix
y = 1 + 4 + 7 = 12
Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false.
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9.
2 years ago
Join the conversation