Solved


Find Logic 28

1 year ago

Solved


Find Logic 20

1 year ago

Solved


Find Logic 21

1 year ago

Solved


Find Logic 32

1 year ago

Solved


Find Logic 26

1 year ago

Solved


Find Logic 27

1 year ago

Solved


Find Logic 23

1 year ago

Solved


Find Logic 22

1 year ago

Solved


Determine if the square root is an integer.
Write code that returns true if perfect square and returns false if square root is not an integer.

1 year ago

Solved


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

1 year ago

Solved


Find the square root of x
Determine the square root of x. For example square root of 4 is 2.

1 year ago

Solved


Nth root
Nth root of a number x

1 year ago

Solved


Back to basics 21 - Matrix replicating
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

Solved


ベクトルのスケーリング
入力したベクトルの大きさを1にしてください。

1 year ago

Solved


二つのベクトルの要素ごとの積の平均を計算しよう
二つの同じ長さのベクトルが与えられたとき、二つのベクトルの要素ごとの積の平均を求めましょう。 例: 二つのベクトル [1 2 3] と [10 15 20] が与えられたとき、 それぞれの要素ごとの積の平均を取ると、 解は 33.3333 と...

1 year ago

Solved


Weighted average
Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...

1 year ago

Solved


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

1 year ago

Solved


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

1 year ago

Solved


select the primes of a vector
Find the prime numbers in a vector

1 year ago

Solved


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

1 year ago

Solved


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

1 year ago

Solved


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

1 year ago

Solved


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

1 year ago

Solved


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

1 year ago

Solved


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

1 year ago

Solved


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

1 year ago

Solved


ASCii Code
Using Matlab get the ASCii for '?'

1 year ago

Solved


ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

1 year ago

Solved


Magnitude of a vector
Given a vector x, what is its magnitude?

1 year ago

Solved


Count the numbers
In a array x, count the number of times the number n appears in x. for example: x = [1 2 3 4 3 2 1 2] and n = 2 the answer sh...

1 year ago

Load more