Feeds
已解决
Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...
4 years 前
已解决
Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...
4 years 前
已解决
Given area find sides
In a right angle triangle given area 'A' one arm=x, another arm=2x then find the value of x. For example, area A=400 then ...
4 years 前
已解决
Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example
4 years 前
已解决
Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.
4 years 前
已解决
The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...
4 years 前
已解决
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
4 years 前
已解决
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
4 years 前
已解决
Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.
4 years 前
已解决
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
4 years 前
已解决
Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250
4 years 前
已解决
Given the variable x as your input, multiply it by four, then divide it by two. Then put the result in y.
If x = 5, y = 4*5/2 = 10
4 years 前
已解决
Guess
A random number between 1 and 10 is created for the variable y. Guess what its value is.
4 years 前
已解决
Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...
4 years 前
已解决
Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.
4 years 前
已解决
the average value of the elements
Calculate the average value of the elements in the array
4 years 前
已解决
Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.
4 years 前
已解决
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...
4 years 前
已解决
Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...
4 years 前
已解决
Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...
4 years 前
已解决
Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...
4 years 前


