A résolu


Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

environ un mois il y a

A résolu


Find index of a string in a cell array
Write a function that finds the index at which the cell array of strings C contains the exact string S. So if C = {'twe...

environ un mois il y a

A résolu


Solve system of equation!
Given provided system of equation, and find x and y. System of equation can be expressed as each term's coefficient. For exam...

environ un mois il y a

A résolu


All odd - all even
All odd numbers in x are added, while all even numers are subtracted from this. example: x = [1 2 3 4 5]; y = +(1+3+5)-...

environ un mois il y a

A résolu


Mid-term report
You just got your mid-term report, but it's full of ones and twos :(. So before you give it to your parents, you change it, in o...

environ un mois 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 un mois il y a

A résolu


Sideways sum
Given natural number calculate its _population count_.

environ un mois il y a

A résolu


Calculate Simple Intrest for given data
P,N,R stands for Principle amount, No. of years and rate of intrest resp. Calculate intrest I

environ un mois il y a

A résolu


find the height

environ un mois il y a

A résolu


Calculate the volume of the football

environ un mois il y a

A résolu


Array Concatenation (2)
Given two matrices, a and b, concatenate the two matrices vertically, i.e., the number of rows of the result should be equal to ...

environ un mois il y a

A résolu


Row avg

environ un mois il y a

A résolu


Find scalar product of two polynomials a and b, given as vector array.
Find scalar product of two polynomials given as vector array. Example a=[1 -1 2]; b=[2 4 1]; result=0

environ un mois il y a

A résolu


How to get the additive inverse of a uint8.
Given x as a uint8 find the additive inverse y.

environ un mois il y a

A résolu


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

environ un mois il y a

A résolu


Determine if a row vector has NaN
Determine if a row vector x has NaN

environ un mois il y a

A résolu


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

environ un mois 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.

environ un mois il y a

A résolu


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

environ un mois il y a

A résolu


Summation of integers

environ un mois 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];...

environ un mois il y a

A résolu


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

environ un mois il y a

A résolu


Vertically stack two vectors
Stack two vectors on top of each-other so that... if A = [1 5 3] and B = [8 6 4] then C = [1 5 3 ; 8 6 4]

environ un mois il y a

A résolu


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

environ un mois il y a

A résolu


Find square of given number
Find Square of any number

environ un mois il y a

A résolu


determine amount cookies left
started with 3 cookies and you never ate any how many are left

environ un mois il y a

A résolu


Baseball Pitch Question
One pitcher made 10 practice pitches during his warm up before the game. Using the given information, create a vector matrix an...

environ un mois il y a

A résolu


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

environ un mois il y a

A résolu


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

environ un mois il y a

A résolu


Create a code for XNOR
Given two inputs, output XNOR of those two

environ un mois il y a

Charger plus