Solved


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

6 hours ago

Solved


Negative matrix
Change the sign of all elements in given matrix.

6 hours ago

Solved


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

6 hours ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

6 hours ago

Solved


Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

6 hours ago

Solved


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

6 hours ago

Solved


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

6 hours ago

Solved


Subtraction
Subtract a from b.

6 hours ago

Solved


Product of Array
Given an array of numbers. Get the product of the array.

6 hours ago

Solved


Basic commands - amount of inputs
Make a function, which will return amount of given inputs Example: amountinput(1,2,4,3,10) -> 5 , because we gave functio...

7 hours ago

Solved


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

7 hours ago

Solved


only input
Return the output without writing any code into the function.

7 hours ago

Solved


select the primes of a vector
Find the prime numbers in a vector

7 hours ago

Solved


Signed Magnitude
For a given input vector, return the value that is furthest from zero. For example, if x = [1 2 -12] return -12.

7 hours ago

Solved


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

7 hours ago

Solved


The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

7 hours ago

Solved


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

7 hours ago

Solved


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

7 hours ago

Solved


square root
Find the square root (y) of an input (x).

7 hours ago

Solved


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

7 hours ago

Solved


What is Sum Of all elements of Matrix
Given the matrix x, return the sum of all elements of matrix. Example: Input x = [ 1 2 0 0 0 0 6 9 3 3 ] ...

7 hours ago

Solved


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

7 hours ago

Solved


UICBioE240 problem 1.5
Find the size of the matrix, then multiply both values by 10 and make it into a column vector. So if A = [ 1 2 3; ...

7 hours ago

Solved


Multiplication
Multiply a and b.

7 hours ago

Solved


Return the Square of a Number
Write a function that takes a single numeric input x and returns its square. That is, given x, your function should output x^2....

7 hours ago

Solved


Calculate the Number of Moles
The number of moles of a substance is calculated using the formula: Mass (g) = Moles / Molar Mass (g/mol)​ Write a function ca...

7 hours ago

Solved


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

7 hours ago

Solved


06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_: <<http://samle.dk/STTBDP/Assignment1_2a.png>> and <<http://samle.dk/STTBDP/Assig...

7 hours ago

Solved


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

7 hours ago

Solved


Find the sum of n squares
What is the sum of the squares of the first n integers?

7 hours ago

Load more