Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


Sideways sum
Given natural number calculate its _population count_.

1 month ago

Solved


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

1 month ago

Solved


find the height

1 month ago

Solved


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

1 month ago

Solved


Row avg

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


Summation of integers

1 month ago

Solved


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

1 month ago

Solved


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]

1 month ago

Solved


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]

1 month ago

Solved


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

1 month ago

Solved


Find square of given number
Find Square of any number

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Solved


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

1 month ago

Load more