解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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.

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

解決済み


to the 2 all elements
to the 2 all elements

3年弱 前

解決済み


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

3年弱 前

解決済み


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

3年弱 前

さらに読み込む