A résolu


Find the function 2
Given a set of point (x,y) and the coordinate x of a new point, find the y value of new point. Test Suite is based on only one ...

plus d'un an il y a

A résolu


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

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


ASCii Code
Using Matlab get the ASCii for '?'

plus d'un an il y a

A résolu


Cos Function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.

plus d'un an il y a

A résolu


Variable_Addition
be able to add any variable to the number one

plus d'un an il y a

A résolu


Average Grade
Given a 1x5 vector presents the grades of a student on five tests. Calculate the average grade of that student.

plus d'un an il y a

A résolu


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

plus d'un an il y a

A résolu


Box!
Given a box, find the volume of the cube. With each side = a.

plus d'un an 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 ...

plus d'un an il y a

A résolu


Poly2mask, drawpolygon or patch
Recently, I tried to plot a polygon in matlab, and I found there is a lot of embedded function that can be used. However, some f...

plus d'un an il y a

A résolu


Dice face matrix!
This is dice simulator, but instead of making a random die number, you will receive an "pre-rolled" number in and spit out a mat...

presque 2 ans il y a

A résolu


Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

presque 2 ans il y a

A résolu


Next Higher Power of B
|Given a number _n_ and a base _B_ greater than 1, return the lowest integer power of _B_ that is greater than or equal to _n_. ...

presque 2 ans il y a

A résolu


Build the Well
Calculate the total time taken for building 'n' wells given : Worker A takes a hr to build the well alone Worker B takes b hr...

presque 2 ans il y a

A résolu


Bag of apples
find probabilty of getting red apples from a bag of 'r' red and 'g' green apples.

presque 2 ans il y a

A résolu


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

presque 2 ans il y a

A résolu


Interior angles
Find the sum of interior angles for polygon of x sides.

presque 2 ans il y a

A résolu


prime test 2
enter the only non prime,non composite number

presque 2 ans il y a

A résolu


To convolve two vectors
To convolve two vectors

presque 2 ans il y a

A résolu


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

presque 2 ans il y a

A résolu


Letras Maisculas
Dado uma string A, retorne apenas os caracteres maiúsculos de A Maiusculas('Hello World') = 'HW';

presque 2 ans il y a

A résolu


Remove Repetidos e Ordena
Dado um vetor A, remove todos os valores repetidos deixando apenas 1 valor, e ordene o vetor. RemoveRepetidosEOrdena([1 1 2 3])...

presque 2 ans il y a

A résolu


Multiplos 7
Escreva um programa que mostre todos os números entre 5 e 100 que são divisíveis por 7, mas não são múltiplos de 5. Os números o...

presque 2 ans il y a

A résolu


Loja de tintas
Faça um programa para uma loja de tintas. O programa deverá receber o tamanho em metros quadrados da área a ser pintada. Conside...

presque 2 ans il y a

A résolu


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

presque 2 ans il y a

A résolu


Distancia Vetores
Dados dois vetores a = (x1, y1) e b = (x2, y2). Calcule a distância entre os vetores e verifique se estão perto (distancia < 10)...

presque 2 ans il y a

A résolu


Maior Primo
Dado um valor inteiro N, qual o maior valor primo <= N MaiorPrimo(5) = 5; MaiorPrimo(10) = 7;

presque 2 ans il y a

A résolu


Matrizes Multiplicaveis
Dadas duas matrizes M1 e M2, verifique se as matrizes podem ser multiplicadas uma pela outra M1 = [1 2 3; 4 5 6] M2 = [7; 8; 9...

presque 2 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'; ...

presque 2 ans il y a

Charger plus