已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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

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 前

已解决


Multiply pi
Multiply pi with x!

4 years 前

已解决


Divide pi
Divide pi by x!

4 years 前

已解决


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

4 years 前

已解决


Matrix for beginners
Multiply x and y elemwise.

4 years 前

已解决


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

4 years 前

已解决


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

4 years 前

已解决


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

4 years 前

已解决


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

4 years 前

已解决


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 前

已解决


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 前

已解决


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

4 years 前

已解决


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

4 years 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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 前

已解决


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

5 years 前

已解决


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

5 years 前

加载更多