A résolu


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

environ 3 ans il y a

A résolu


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

environ 3 ans il y a

A résolu


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

environ 3 ans il y a

A résolu


Odd times 3
Given a input matrix x, multiply all odd values by 3. Even values remain the same. example: x = [1 2 3 4 5;... 6 7...

environ 3 ans il y a

A résolu


Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product. example: x = [1 2] One odd ...

environ 3 ans il y a

A résolu


Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

environ 3 ans il y a

A résolu


imaginary results
Return the value of the imaginary number i to the power of input argument n.

environ 3 ans il y a

A résolu


MATLAB Basics: Complex Argument
For a given complex number, x, return the argument, y, in degrees.

environ 3 ans il y a

A résolu


MATLAB Basics: Complex Conjugates
For a given complex number, x, return the complex conjugate, y.

environ 3 ans il y a

A résolu


MATLAB Basics: Complex Numbers
For a given complex number, x, return the real and imaginary parts as a vector, y = [Real Imaginary].

environ 3 ans il y a

A résolu


Fizz
Dado um número inteiro n, retorne 'fizz' se esse valor for multiplo de 3, ou retorne o valor caso contrario. Fizz(3) = 'fizz'; ...

environ 3 ans il y a

A résolu


Divisible by 21
Write a function to determine if a number is divisible by 21.

environ 3 ans il y a

A résolu


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

environ 3 ans il y a

A résolu


Create tangent function out of sine function only
Please don't use cosine and tangent functions

environ 3 ans il y a

A résolu


Complex transpose
Calculate the transpose of a matrix having complex numbers as its elements without changing the signs of the imaginary part. ...

environ 3 ans il y a

A résolu


Convert from integer to binary
if true % decimalToBinaryVector(x) end

environ 3 ans il y a

A résolu


Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel? A vector R contains the resistances (in Ohm) of n resistors,...

environ 3 ans il y a

A résolu


Total resistance of resistors in series
What is the total resistance of a number of resistors in series? A vector R contains the resistances (in Ohm) of n resistors, w...

environ 3 ans il y a

A résolu


Replicate and Tile an Array
Replicate and tile an array. Example A = [1 2 3; 4 5 6; 7 8 9] B = Epli_and_Tile(A,1,2) B = [ 1 2 3 1...

environ 3 ans il y a

A résolu


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

environ 3 ans il y a

A résolu


reverse the order and combine a matrix

environ 3 ans il y a

A résolu


Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

environ 3 ans il y a

A résolu


Golden ratio
Calculate the golden ratio. Hint: phi^2 = phi + 1.

environ 3 ans il y a

A résolu


Area of square
Find the area of a square whose diagonal length is given as x.

environ 3 ans il y a

A résolu


Distance Travelled by Vehicle

environ 3 ans il y a

A résolu


Effective Nuclear Charge

environ 3 ans il y a

A résolu


Find square of given number
Find Square of any number

environ 3 ans il y a

A résolu


10% Discount

environ 3 ans il y a

A résolu


Find Logic 2

environ 3 ans il y a

Charger plus