Solved


Times 7
Try out this test problem first. Given the variable x as your input, multiply it by seven and put the result in y. Example...

4 years ago

Solved


Times 8
Try out this test problem first. Given the variable x as your input, multiply it by eight and put the result in y. Example...

4 years ago

Solved


Times 9
Try out this test problem first. Given the variable x as your input, multiply it by nine and put the result in y. Examples...

4 years ago

Solved


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:...

4 years ago

Solved


Times 11
Try out this test problem first. Given the variable x as your input, multiply it by eleven and put the result in y. Exampl...

4 years ago

Solved


Times 12
Try out this test problem first. Given the variable x as your input, multiply it by twelve and put the result in y. Exampl...

4 years ago

Solved


Times 20
Try out this test problem first. Given the variable x as your input, multiply it by ninety and put the result in y. Exampl...

4 years ago

Solved


Times 3
Try out this test problem first. Given the variable x as your input, multiply it by three and put the result in y. Example...

4 years ago

Solved


Calculate the centroid of a triangle
Info: https://en.wikipedia.org/wiki/Centroid Example Input: x = [0 0 1]; % x-coordinate y = [0 1 0]; % y-coordinat...

4 years ago

Solved


Square
X is a number, write a code, where Y should be the square of X.

4 years ago

Solved


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

4 years ago

Solved


Multiply pi
Multiply pi with x!

4 years ago

Solved


Divide pi
Divide pi by x!

4 years ago

Solved


Matrix problem for beginners
Make a matrix [0,0,0;1,1,1;2,2,2]. X=[0,1,2]

4 years ago

Solved


Matrix for beginners
Multiply x and y elemwise.

4 years ago

Solved


Newton's Motion Law
F is force, m is mass, and a is acceleration. Calculate the force for an object.

4 years ago

Solved


Momentum of an Object
P is momentum, m is mass, and v is velocity. Calculate the momentum for an object.

4 years ago

Solved


Equilateral Triangle
The length of one side of the equilateral triangle is a. Calculate the area of ​​the equilateral triangle.

4 years ago

Solved


Speed
x is distance, v is speed, and t is time. Calculate the speed for an object.

4 years ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

4 years ago

Solved


Simple Matrix
Make the following matrix without typing it in one by one. [1 2 3; 2 4 6; 4 8 12] x=[1 2 3].

4 years ago

Solved


Box
Give the volume of a box, x is equal to the body diagonal.

4 years ago

Solved


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

4 years ago

Solved


Create a vector with n repeated values of a number x
If x=3 and n=7 then the vector y would be y=[3 3 3 3 3 3 3]

4 years ago

Solved


Create logarithmically spaced values
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b. Thus, if a = -2, ...

4 years ago

Solved


Create a vector of the first n naturnal numbers
If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].

4 years ago

Solved


Element-wise vector product
Given two vectors x and y, compute their element-wise product z. Thus, if x = [1 3 5] and y = [0.5 -1 2], then z = [1*0.5...

4 years ago

Solved


Vector raised to a power (element-wise)
Given a vector A and a number x, raise each element of the vector to the power of x. Thus, if A = [2 5 7 1] and x = 0.5, then ...

4 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

4 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

4 years ago

Load more