Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3,
output = [4 4 4]
Hint:
Search for the function...
5年弱 前
解決済み
Where is the number that you want to find?
For a given matrix A, find where the input number x appears.
Do this task by returning the vector which contains the row and th...
5年弱 前
解決済み
determine if
determine if the elements of a matrix is a nan and return true
5年弱 前
解決済み
Replace all odd numbers with NaN
Replace all odd numbers in the vector or matrix with NaN. For example, if
x = [1 3 4 5 8 11];
then return
y = [NaN Na...
5年弱 前
解決済み
find the 'M'
for an input x, return 1 at the location of the letter 'M'
Probability of red tulips
I hope to give you bulbs of tulip. But I do not know the color of those petals. I just know that the color is red, white or yell...
5年弱 前
解決済み
Average of odd values
Find the average of odd values in given a matrix.
e.g
x=[ 4 11 8 ; 9 2 7 ]
y =( 11 + 9+ 7 ) / 3
counting groups!
This problem is about counting groups.
Example
If you have x:
x = [0.8 0.8 0.8 0.3 0.3 0.4 0.5 0.6 0.6 0.9]
then a...
5年弱 前
解決済み
Find the mode of the given input
Find the statistical <http://en.wikipedia.org/wiki/Mode_(statistics)/ mode>
of the given input.
Example:
If X is matr...
5年弱 前
解決済み
NO _________ ALLOWED....
So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...
5年弱 前
解決済み
Ohm's Law
Well its Ohm's law...
So V = IR!
I will give two of the three values, such as V and I or I and R and you have to return th...
5年弱 前
解決済み
Matrix to column conversion
Given a matrix of any size, convert it into a column vector.
e.g A=[10 20 30;
40 50 60]
then,
B = [10;
40;
...
5年弱 前
解決済み
Find maximum value of a curve
Two vectors shall be already defined:
- Input vector x (e.g. x = 0:1:10)
- Result vector y (e.g. y = sin(x))
Create a n...