A résolu


Which quadrant?
Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

plus de 5 ans il y a

A résolu


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

plus de 5 ans il y a

A résolu


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

plus de 5 ans il y a

A résolu


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

plus de 5 ans il y a

A résolu


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

plus de 5 ans il y a

A résolu


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

plus de 5 ans il y a

A résolu


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Find the area of the four walls
If length, breadth and height of the walls are given, find the area of the four walls.

plus de 5 ans il y a

A résolu


Basic commands - Least common multiple
Make a function which will return least common multiple of "a" and "b" Example: a=8; b=6; y=24;

plus de 5 ans il y a

A résolu


angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input. Please pay attention, that 1 ...

plus de 5 ans il y a

A résolu


Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

plus de 5 ans il y a

A résolu


How many bottles can you drink?
Sometimes if you buy a drink in a glass bottle you can return that bottle and get some money back. Let's assume we have "x" a...

plus de 5 ans il y a

A résolu


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

plus de 5 ans il y a

A résolu


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

plus de 5 ans il y a

A résolu


Basic commands - Greatest common divisor
Please write a function, which, will put as output greatest common divisor. Example: A = [-5 17; 10 0];...

plus de 5 ans il y a

A résolu


Basic commands - rounding
make a function which will round to integer, which is nearer to zero. Example x=[-2.5 2]; y=[-2 2];

plus de 5 ans il y a

A résolu


Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.

plus de 5 ans il y a

A résolu


volume of torus
Find volume of torus with a as major radius and b as minor

plus de 5 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.

plus de 5 ans il y a

A résolu


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

plus de 5 ans il y a

A résolu


Diagonal Prod

plus de 5 ans il y a

A résolu


F.R.I.E.N.D.S

plus de 5 ans il y a

A résolu


Card games

plus de 5 ans il y a

A résolu


Insert zeros

plus de 5 ans il y a

A résolu


size

plus de 5 ans il y a

A résolu


Insert zeros II

plus de 5 ans il y a

A résolu


Return multiples of 3

plus de 5 ans il y a

A résolu


F.R.I.E.N.D.S

plus de 5 ans il y a

A résolu


Row avg

plus de 5 ans il y a

Charger plus