Risolto

Sum of series IX

5 mesi fa

Risolto

Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

5 mesi fa

Risolto

The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

5 mesi fa

Risolto

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

5 mesi fa

Risolto

Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

5 mesi fa

Risolto

Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

5 mesi fa

Risolto

Converts numbers into characters
Converts numbers into characters

5 mesi fa

Risolto

Find the max element of the array
Find the max element of the array

5 mesi fa

Risolto

Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

5 mesi fa

Risolto

Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

5 mesi fa

Risolto

to the 2 all elements
to the 2 all elements

5 mesi fa

Risolto

the average value of the elements
Calculate the average value of the elements in the array

5 mesi fa

Risolto

Double all elements in the array
Duplicate all elements in the array

5 mesi fa

Risolto

calculate the length of matrix
input 1 array, calculate the length

5 mesi fa

Risolto

Draw a '0' in a one matrix!

5 mesi fa

Risolto

Round down
round down to the nearest integer

5 mesi fa

Risolto

Caesar Cipher
Given a input word x and a shift n, encrypt the word with caesar cipher of shift n.

5 mesi fa

Risolto

Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

5 mesi fa

Risolto

Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

5 mesi fa

Risolto

Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

5 mesi fa

Risolto

Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

5 mesi fa

Risolto

Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

5 mesi fa

Risolto

Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

5 mesi fa

Risolto

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

5 mesi fa

Problema

Caesar Cipher
Given a input word x and a shift n, encrypt the word with caesar cipher of shift n.

5 mesi fa | 1 | 10 risolutori

Risolto

ある数のベクトルが与えられた場合、そのベクトルの要素の一つが他の要素の二乗であれば true を返し、それ以外の場合は false を返すようなコードを書いてみましょう。 例: 入力が a = [2 3 4] のとき、 出力 b は t...

5 mesi fa

Risolto

2倍してみよう - ここからスタート！

5 mesi fa

Risolto

ベクトルの値が増加しているかを調べよう
ベクトルの値が増加している場合 (ベクトルの各要素が前の要素よりも大きい場合) には true を、そうでない場合には false を返すようなコードを書いてみましょう。 例: 入力が x = [-3 0 7] のとき、 関数の...

5 mesi fa

Risolto

チェッカーボードを作ろう

5 mesi fa

Risolto

ベクトル [1 2 3 4 5 6 7 8 9 10]　の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける（コンマはオプション）。 x = [1, 2, 3, 4] 問題：次のベクトルを出力する関数を作成せよ。...

5 mesi fa