Find x in provided equation!
x^2-2*x+1=0
This polynomial can be expressed by using each term's coefficients, such as
[1 -2 1].
Using the polynomial ...
約5年 前
解決済み
Replace 0 to NaN!
In given matrix
A=[1 nan nan; 2 2 nan; nan nan 1];
replace NaN to 0. Use matrix A as a input.
約5年 前
解決済み
Odd times even numbers in a matrix
First count the number of odd numbers in x, then the number of even. Return their product.
example:
x = [1 2]
One odd ...
約5年 前
解決済み
Cumulative product of a vector
Cumulative product of a vector
example
x=[1 2 5 10], then answer must be [ 1 2 10 100]
*If you like this prob...
約5年 前
解決済み
Reduce the logic
We have three logical input, x,y and z.
The output is:
y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z)
...
約5年 前
解決済み
sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters.
for example, if x='lala' ('l'-> 108, 'a'->97) then y...
Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15
約5年 前
解決済み
Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample
Example: if x=4 and n=3
Answer must be=[1 100 10...
約5年 前
解決済み
Determine the mean of matrix
Determine the mean of matrix without using mean function
Hint: use simple algorithm
約5年 前
解決済み
Times 10
Try out this test problem first.
Given the variable x as your input, multiply it by ten and put the result in y.
Examples:...
約5年 前
解決済み
Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN;
output -> matrix(p*m), the same matrix where we deleted the enti...