A résolu


Find Logic 28

plus d'un an il y a

A résolu


Find Logic 20

plus d'un an il y a

A résolu


Find Logic 21

plus d'un an il y a

A résolu


Find Logic 32

plus d'un an il y a

A résolu


Find Logic 26

plus d'un an il y a

A résolu


Find Logic 27

plus d'un an il y a

A résolu


Find Logic 23

plus d'un an il y a

A résolu


Find Logic 22

plus d'un an il y a

A résolu


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.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Nth root
Nth root of a number x

plus d'un an il y a

A résolu


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...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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...

plus d'un an il y a

A résolu


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...

plus d'un an il y a

A résolu


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 :-)...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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) ...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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...

plus d'un an il y a

A résolu


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...

plus d'un an il y a

A résolu


ASCii Code
Using Matlab get the ASCii for '?'

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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...

plus d'un an il y a

Charger plus