Feeds
문제를 풀었습니다
Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.
2개월 전
문제를 풀었습니다
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...
2개월 전
문제를 풀었습니다
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...
2개월 전
문제를 풀었습니다
Get the length of a given vector
Given a vector x, the output y should equal the length of x.
2개월 전
문제를 풀었습니다
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
2개월 전
문제를 풀었습니다
Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...
2개월 전
문제를 풀었습니다
Calculate Reynolds Number
Write a MATLAB function that calculates the Reynolds number for flow over a flat plate: ρ = fluid density (kg/m³) V = veloc...
2개월 전
문제를 풀었습니다
Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.
2개월 전
문제를 풀었습니다
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 ...
2개월 전
문제를 풀었습니다
The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...
2개월 전
문제를 풀었습니다
Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33
2개월 전
문제를 풀었습니다
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...
2개월 전
문제를 풀었습니다
the average value of the elements
Calculate the average value of the elements in the array
2개월 전
문제를 풀었습니다
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
2개월 전
문제를 풀었습니다
Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.
2개월 전
문제를 풀었습니다
Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.
2개월 전
문제를 풀었습니다
Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...
2개월 전
문제를 풀었습니다
Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.
2개월 전
문제를 풀었습니다
Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...
2개월 전



