Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector, output true or false whether it is a colu...
Min of a Matrix
Return the minimum value in the given matrix.
4年以上 前
解決済み
Add two numbers
Calculate the sum of two numbers.
Example
input = [2 3]
output = 5
4年以上 前
解決済み
Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN.
Example:
input: x = [1 2 5 12 10 7]
...
letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...
4年以上 前
解決済み
QWERTY Shift Code Decoder
Decode a string encoded using the QWERTY shift code.
QWERTY shift code is where the message was touch typed but with an offse...
4年以上 前
解決済み
QWERTY Shift Encoder
Encode a string using the QWERTY shift code.
This code is where you touch type but are offset by one character to the right.
...
4年以上 前
解決済み
Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...
4年以上 前
解決済み
Data decompression
A chunk of data is to be 'decompressed'.
Input:
* compressed: a row vector of uint8 values. This is the compressed data.
...
Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man?
Give the name of that man, who, by popular believe, can ...
Square a Number
Given an input x, return y, which is equal to the square of x.
4年以上 前
解決済み
Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix
example:
A = [1 2 3]
output = [1 4 9]
4年以上 前
解決済み
Replace May with April
For instance, if the input is
input_str = 'The flowers may bloom in April';
then the output is
output_str = 'The flo...
4年以上 前
解決済み
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation,
* F(n) = F(n-1) + F(n-2)
* where F(1) = 1 and F(1)...