Count me in
Count the number of occurrences of the second input in the first input
Ex.
x1 = 12344455511; x2 =2; output = 1
...
5ヶ月 前
解決済み
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...
5ヶ月 前
解決済み
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...
5ヶ月 前
解決済み
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)-...
5ヶ月 前
解決済み
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...
5ヶ月 前
解決済み
Second smallest number
What is the second smallest number in x?
example:
x = [1 2 3 4 5 6 7 8 9]
y = 2
5ヶ月 前
解決済み
Sideways sum
Given natural number calculate its _population count_.
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 ...
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...
5ヶ月 前
解決済み
Cos Function
x is the abscissa. find the absolute value of cosine of -x and the same value with changed sign.
5ヶ月 前
解決済み
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 ...
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...
5ヶ月 前
解決済み
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...
5ヶ月 前
解決済み
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...