Risolto


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

quasi 3 anni fa

Risolto


Determine the square root
Determine the square root of the value the user has entered, n.

quasi 3 anni fa

Risolto


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

quasi 3 anni fa

Risolto


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

quasi 3 anni fa

Risolto


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

quasi 3 anni fa

Risolto


Square root of a number
Write a code that will output the square root of x.

quasi 3 anni fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

quasi 3 anni fa

Risolto


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

quasi 3 anni fa

Risolto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

quasi 3 anni fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

quasi 3 anni fa

Risolto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

quasi 3 anni fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

quasi 3 anni fa

Risolto


Find max
Find the maximum value of a given vector or matrix.

quasi 3 anni fa

Risolto


Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

quasi 3 anni fa

Risolto


Evaluating a polynomial
Given the following polynomial and the value for x, determine y. y = 3x^5 – x^3 + 8x – 3 Example x = 1 y = 3 - 1 +...

quasi 3 anni fa

Risolto


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

quasi 3 anni fa

Risolto


Min of a Matrix
Return the minimum value in the given matrix.

quasi 3 anni fa

Risolto


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

quasi 3 anni fa

Risolto


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

quasi 3 anni fa

Risolto


Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...

quasi 3 anni fa

Risolto


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

quasi 3 anni fa

Risolto


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

quasi 3 anni fa

Risolto


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

quasi 3 anni fa

Risolto


Find the max element of the array
Find the max element of the array

quasi 3 anni fa

Risolto


to the 2 all elements
to the 2 all elements

quasi 3 anni fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

quasi 3 anni fa

Risolto


Double all elements in the array
Duplicate all elements in the array

quasi 3 anni fa

Carica altro